Skip to content

Commit a622f2e

Browse files
committed
Merge branch 'devel'
2 parents cbd5ab6 + 5b6f15e commit a622f2e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,7 @@
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

tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@
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

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.4.5
1+
v1.4.6

0 commit comments

Comments
 (0)