Skip to content

Commit 192174c

Browse files
committed
Reorder handlers so systemd config is reloaded before consul uses systemd to restart itself.
1 parent 5857360 commit 192174c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

handlers/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
2+
- name: reload systemd
3+
become: yes
4+
command: systemctl daemon-reload
5+
26
- name: restart consul
37
action: service name=consul state=restarted enabled=yes
48
when: consul_manage_service
@@ -8,9 +12,5 @@
812
command: pkill -1 consul
913
when: consul_service_state is not "stopped" and consul_manage_service
1014

11-
- name: reload systemd
12-
become: yes
13-
command: systemctl daemon-reload
14-
1515
- name: restart dnsmasq
1616
service: name=dnsmasq state=restarted enabled=yes

0 commit comments

Comments
 (0)