mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
give apache_user poweroff permission
This commit is contained in:
parent
7f80ed0345
commit
6ea444e5de
2 changed files with 7 additions and 1 deletions
|
@ -147,7 +147,7 @@
|
||||||
- base
|
- base
|
||||||
|
|
||||||
- include: home-page.yml
|
- include: home-page.yml
|
||||||
|
|
||||||
- name: place the script to generate home pages
|
- name: place the script to generate home pages
|
||||||
template: src=refresh-wiki-docs.sh
|
template: src=refresh-wiki-docs.sh
|
||||||
dest=/usr/bin/iiab-refresh-wiki-docs
|
dest=/usr/bin/iiab-refresh-wiki-docs
|
||||||
|
@ -156,3 +156,8 @@
|
||||||
- name: generate the offline documents
|
- name: generate the offline documents
|
||||||
command: /usr/bin/iiab-refresh-wiki-docs
|
command: /usr/bin/iiab-refresh-wiki-docs
|
||||||
when: not nodocs
|
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
Add a link
Reference in a new issue