From: Oleg Broytman Date: Mon, 29 Jul 2019 18:28:12 +0000 (+0300) Subject: Fix: Become root to reload services X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=2874ed02fa96232145a03cba8e1acfcc44ddb34d;p=ansible.git Fix: Become root to reload services --- diff --git a/playbooks/debian/roles/add-apache-vhost/handlers/main.yml b/playbooks/debian/roles/add-apache-vhost/handlers/main.yml index c99bf62..e4b4950 100644 --- a/playbooks/debian/roles/add-apache-vhost/handlers/main.yml +++ b/playbooks/debian/roles/add-apache-vhost/handlers/main.yml @@ -1,4 +1,5 @@ - name: Reload apache + become: true service: name: apache2 state: reloaded diff --git a/playbooks/debian/roles/apache/handlers/main.yml b/playbooks/debian/roles/apache/handlers/main.yml index c99bf62..e4b4950 100644 --- a/playbooks/debian/roles/apache/handlers/main.yml +++ b/playbooks/debian/roles/apache/handlers/main.yml @@ -1,4 +1,5 @@ - name: Reload apache + become: true service: name: apache2 state: reloaded diff --git a/playbooks/debian/roles/sshd/handlers/main.yml b/playbooks/debian/roles/sshd/handlers/main.yml index 4d75e71..9ec20b5 100644 --- a/playbooks/debian/roles/sshd/handlers/main.yml +++ b/playbooks/debian/roles/sshd/handlers/main.yml @@ -1,4 +1,5 @@ - name: Reload sshd + become: true service: name: ssh state: reloaded