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:
parent
cbb090fe71
commit
957b3cffde
2 changed files with 7 additions and 1 deletions
|
@ -147,7 +147,7 @@
|
|||
- base
|
||||
|
||||
- include: home-page.yml
|
||||
|
||||
|
||||
- name: place the script to generate home pages
|
||||
template: src=refresh-wiki-docs.sh
|
||||
dest=/usr/bin/iiab-refresh-wiki-docs
|
||||
|
@ -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
|
||||
|
|
1
roles/httpd/templates/020_apache_poweroff.j2
Normal file
1
roles/httpd/templates/020_apache_poweroff.j2
Normal file
|
@ -0,0 +1 @@
|
|||
{{ apache_user }} ALL =NOPASSWD: /sbin/poweroff, /bin/systemctl poweroff
|
Loading…
Add table
Reference in a new issue