From f347daa40830f06e5b0641c3dbf4b6fa3963c897 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 11 Mar 2019 15:12:58 +0100 Subject: [PATCH] Use systemd module rather than command --- roles/matrix-appservice-discord/handlers/main.yml | 3 ++- roles/matrix-appservice-irc/handlers/main.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/matrix-appservice-discord/handlers/main.yml b/roles/matrix-appservice-discord/handlers/main.yml index ac3842d..46a7fd8 100644 --- a/roles/matrix-appservice-discord/handlers/main.yml +++ b/roles/matrix-appservice-discord/handlers/main.yml @@ -1,4 +1,5 @@ --- # Reload systemd daemons when a service file changes - name: Reload systemd daemons - command: systemctl daemon-reload + systemd: + daemon_reload: true diff --git a/roles/matrix-appservice-irc/handlers/main.yml b/roles/matrix-appservice-irc/handlers/main.yml index ac3842d..46a7fd8 100644 --- a/roles/matrix-appservice-irc/handlers/main.yml +++ b/roles/matrix-appservice-irc/handlers/main.yml @@ -1,4 +1,5 @@ --- # Reload systemd daemons when a service file changes - name: Reload systemd daemons - command: systemctl daemon-reload + systemd: + daemon_reload: true