diff --git a/defaults/main.yml b/defaults/main.yml index 83a8ceb..2a60bd3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,7 +4,10 @@ zookeeper_url: http://www.us.apache.org/dist/zookeeper/zookeeper-{{zookeeper_ver # Flag that selects if systemd or upstart will be used for the init service: # Note: by default Ubuntu 15.04 and later use systemd (but support switch to upstart) -zookeeper_debian_systemd_enabled: "{{ ansible_distribution_version|version_compare(15.04, '>=') }}" +_ubuntu_1504: "{{ ansible_distribution == 'Ubuntu' and ansible_distribution_version|version_compare(15.04, '>=') }}" +_debian_8: "{{ ansible_distribution == 'Debian' and ansible_distribution_version|version_compare(8.0, '>=') }}" +zookeeper_debian_systemd_enabled: "{{ _ubuntu_1504 or _debian_8 }}" + zookeeper_debian_apt_install: false zookeeper_debian_apt_repositories: [] apt_cache_timeout: 3600