]> git.phdru.name Git - ansible.git/commitdiff
Fix: Become root to reload services
authorOleg Broytman <phd@phdru.name>
Mon, 29 Jul 2019 18:28:12 +0000 (21:28 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 29 Jul 2019 18:28:12 +0000 (21:28 +0300)
playbooks/debian/roles/add-apache-vhost/handlers/main.yml
playbooks/debian/roles/apache/handlers/main.yml
playbooks/debian/roles/sshd/handlers/main.yml

index c99bf62ca1bae1abe19155d8f2c1803999a27678..e4b495031f97640100e39ea6dd7ad615440142af 100644 (file)
@@ -1,4 +1,5 @@
 - name: Reload apache
+  become: true
   service:
     name: apache2
     state: reloaded
index c99bf62ca1bae1abe19155d8f2c1803999a27678..e4b495031f97640100e39ea6dd7ad615440142af 100644 (file)
@@ -1,4 +1,5 @@
 - name: Reload apache
+  become: true
   service:
     name: apache2
     state: reloaded
index 4d75e71a87db983beb033f7177f7ed4f56553e9a..9ec20b584553bfd0ed1c37d8223f2d4a41e042d8 100644 (file)
@@ -1,4 +1,5 @@
 - name: Reload sshd
+  become: true
   service:
     name: ssh
     state: reloaded