From 8c387c4fece3978f0cf51e6b3f745029d8df6a30 Mon Sep 17 00:00:00 2001 From: Matthieu Saulnier Date: Tue, 25 Dec 2018 20:43:39 +0100 Subject: Use systemd module instead of systemctl command for daemon-reload --- roles/clients/handlers/systemd.yml | 3 ++- roles/common/handlers/systemd.yml | 3 ++- roles/mtaserver/handlers/systemd.yml | 3 ++- roles/proxy/handlers/systemd.yml | 3 ++- roles/reverseproxy/handlers/systemd.yml | 3 ++- roles/torrelay/handlers/systemd.yml | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/roles/clients/handlers/systemd.yml b/roles/clients/handlers/systemd.yml index d81fdba..8a13bc3 100644 --- a/roles/clients/handlers/systemd.yml +++ b/roles/clients/handlers/systemd.yml @@ -1,2 +1,3 @@ - name: reload systemd - command: /usr/bin/systemctl --system daemon-reload + systemd: + daemon_reload: yes diff --git a/roles/common/handlers/systemd.yml b/roles/common/handlers/systemd.yml index d81fdba..8a13bc3 100644 --- a/roles/common/handlers/systemd.yml +++ b/roles/common/handlers/systemd.yml @@ -1,2 +1,3 @@ - name: reload systemd - command: /usr/bin/systemctl --system daemon-reload + systemd: + daemon_reload: yes diff --git a/roles/mtaserver/handlers/systemd.yml b/roles/mtaserver/handlers/systemd.yml index d81fdba..8a13bc3 100644 --- a/roles/mtaserver/handlers/systemd.yml +++ b/roles/mtaserver/handlers/systemd.yml @@ -1,2 +1,3 @@ - name: reload systemd - command: /usr/bin/systemctl --system daemon-reload + systemd: + daemon_reload: yes diff --git a/roles/proxy/handlers/systemd.yml b/roles/proxy/handlers/systemd.yml index d81fdba..8a13bc3 100644 --- a/roles/proxy/handlers/systemd.yml +++ b/roles/proxy/handlers/systemd.yml @@ -1,2 +1,3 @@ - name: reload systemd - command: /usr/bin/systemctl --system daemon-reload + systemd: + daemon_reload: yes diff --git a/roles/reverseproxy/handlers/systemd.yml b/roles/reverseproxy/handlers/systemd.yml index d81fdba..8a13bc3 100644 --- a/roles/reverseproxy/handlers/systemd.yml +++ b/roles/reverseproxy/handlers/systemd.yml @@ -1,2 +1,3 @@ - name: reload systemd - command: /usr/bin/systemctl --system daemon-reload + systemd: + daemon_reload: yes diff --git a/roles/torrelay/handlers/systemd.yml b/roles/torrelay/handlers/systemd.yml index d81fdba..8a13bc3 100644 --- a/roles/torrelay/handlers/systemd.yml +++ b/roles/torrelay/handlers/systemd.yml @@ -1,2 +1,3 @@ - name: reload systemd - command: /usr/bin/systemctl --system daemon-reload + systemd: + daemon_reload: yes -- cgit