1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

give apache_user poweroff permission (#95)

This commit is contained in:
Tim Moody 2017-07-05 12:40:39 -04:00 committed by georgejhunt
parent cbb090fe71
commit 957b3cffde
2 changed files with 7 additions and 1 deletions

View file

@ -156,3 +156,8 @@
- name: generate the offline documents
command: /usr/bin/iiab-refresh-wiki-docs
when: not nodocs
- name: Give apache_user permission for poweroff
template: src=020_apache_poweroff.j2
dest=/etc/sudoers.d/020_apache_poweroff
mode=0755

View file

@ -0,0 +1 @@
{{ apache_user }} ALL =NOPASSWD: /sbin/poweroff, /bin/systemctl poweroff