summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2018-12-25 20:43:39 +0100
committerMatthieu Saulnier <fantom@fedoraproject.org>2018-12-25 20:43:39 +0100
commit8c387c4fece3978f0cf51e6b3f745029d8df6a30 (patch)
tree8dcfae89a79c7ec2281e1a047583bf9943d571ca
parent0695eeca0ddca7ddbf13b6b2ea2045aa6490d2e4 (diff)
downloadplaybooks-ansible-8c387c4fece3978f0cf51e6b3f745029d8df6a30.tar.gz
playbooks-ansible-8c387c4fece3978f0cf51e6b3f745029d8df6a30.tar.xz
playbooks-ansible-8c387c4fece3978f0cf51e6b3f745029d8df6a30.zip
Use systemd module instead of systemctl command for daemon-reload
-rw-r--r--roles/clients/handlers/systemd.yml3
-rw-r--r--roles/common/handlers/systemd.yml3
-rw-r--r--roles/mtaserver/handlers/systemd.yml3
-rw-r--r--roles/proxy/handlers/systemd.yml3
-rw-r--r--roles/reverseproxy/handlers/systemd.yml3
-rw-r--r--roles/torrelay/handlers/systemd.yml3
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