Skip to content

Commit

Permalink
Add privileges escalation on php7 restart handler
Browse files Browse the repository at this point in the history
I had an access denied exception when ansible tried to restart php7 fpm

```
RUNNING HANDLER [itcraftsmanpl.php7 : restart php7-fpm] ************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "failed": true, "msg": "Unable to restart service php7.0-fpm: Failed to restart php7.0-fpm.service: Access denied\n"}
```
  • Loading branch information
deuzu authored Nov 20, 2016
1 parent f13ed92 commit 65a9908
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
- name: restart php7-fpm
service: name=php7.0-fpm enabled=yes state=restarted
become: yes

0 comments on commit 65a9908

Please sign in to comment.