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 137
137
138
138
- Switch init scripts to send SIGTERM to address #2
139
139
- 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 66
66
67
67
- name : SYSV init script
68
68
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"
70
70
71
71
- name : Debian init script
72
72
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"
74
74
75
75
- name : systemd script
76
76
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"
78
78
79
79
- name : Start Nomad
80
80
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