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:
Jean-Philippe Evrard 2018-01-15 15:27:18 +00:00
parent 26601a3fb4
commit e1fdd13c0c
1 changed files with 2 additions and 1 deletions

View File

@ -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