Use systemd module instead of command
This causes linters to break: since ansible 2.4 the systemd module can have only the daemon_reload directive. Change-Id: I66b041ebb22cba1abd92d5d0d36f206971ab555b
This commit is contained in:
parent
26601a3fb4
commit
e1fdd13c0c
|
@ -49,7 +49,8 @@
|
|||
register: systemd_init
|
||||
|
||||
- name: Reload the systemd daemon
|
||||
command: "systemctl daemon-reload"
|
||||
systemd:
|
||||
daemon_reload: "yes"
|
||||
when: systemd_init | changed
|
||||
notify:
|
||||
- Restart watcher services
|
||||
|
|
Loading…
Reference in New Issue