Skip to content

Commit

Permalink
Merge pull request #69 from dzeban/enable-systemd-debian8
Browse files Browse the repository at this point in the history
Enable systemd service for Debian 8
  • Loading branch information
ernestas-poskus authored Jun 15, 2017
2 parents 3ac38ed + eb88708 commit d57a942
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d57a942

Please sign in to comment.