Skip to content

Commit ab9b8e4

Browse files
author
Olivier Locard
committed
Add systemd daemon reload.
1 parent 395eee4 commit ab9b8e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tasks/systemd.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@
77
owner: root
88
group: root
99
mode: 0755
10+
register: systemd_service_file
1011
notify: restart haproxy
1112

1213
- name: Systemd - Ensure service is linked into /etc/systemd.
1314
file:
1415
src: "/lib/systemd/system/haproxy.service"
1516
dest: "/etc/systemd/system/multi-user.target.wants/haproxy.service"
1617
state: link
18+
19+
- name: Systemd - Ensure systemd daemon is reloaded.
20+
systemd:
21+
daemon_reload: yes
22+
when: systemd_service_file.changed

0 commit comments

Comments
 (0)