File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 137137
138138- Switch init scripts to send SIGTERM to address #2
139139- Add leave_on_terminate and set to True by default
140+
141+ ## v1.4.6
142+
143+ - Better conditionals for init scripts fixes #5
Original file line number Diff line number Diff line change 6666
6767- name : SYSV init script
6868 template : src=nomad_sysvinit.j2 dest=/etc/init.d/nomad owner=root group=root mode=755
69- when : not ansible_distribution == "Debian"
69+ when : not ansible_service_mgr == "systemd" and not ansible_os_family == "Debian"
7070
7171- name : Debian init script
7272 template : src=nomad_debian.init.j2 dest=/etc/init.d/nomad owner=root group=root mode=755
73- when : ansible_distribution == "Debian " and ansible_distribution_major_version|int <= 7
73+ when : not ansible_service_mgr == "systemd " and ansible_os_family == "Debian"
7474
7575- name : systemd script
7676 template : src=nomad_systemd.service.j2 dest=/lib/systemd/system/nomad.service owner=root group=root mode=644
77- when : ansible_distribution_major_version|int >= 7
77+ when : ansible_service_mgr == "systemd"
7878
7979- name : Start Nomad
8080 service : name=nomad state=started
Original file line number Diff line number Diff line change 1- v1.4.5
1+ v1.4.6
You can’t perform that action at this time.
0 commit comments