From 2874ed02fa96232145a03cba8e1acfcc44ddb34d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 29 Jul 2019 21:28:12 +0300 Subject: [PATCH] Fix: Become root to reload services --- playbooks/debian/roles/add-apache-vhost/handlers/main.yml | 1 + playbooks/debian/roles/apache/handlers/main.yml | 1 + playbooks/debian/roles/sshd/handlers/main.yml | 1 + 3 files changed, 3 insertions(+) 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 -- 2.39.5