From e1fdd13c0c0778da16ad42cdbb87ab958bd7b255 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Mon, 15 Jan 2018 15:27:18 +0000 Subject: [PATCH] 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 --- tasks/watcher_init_systemd.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/watcher_init_systemd.yml b/tasks/watcher_init_systemd.yml index 8373859..05bc61a 100644 --- a/tasks/watcher_init_systemd.yml +++ b/tasks/watcher_init_systemd.yml @@ -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