Alain can sudo systemctl restart alain.

This commit is contained in:
Julien Palard 2021-10-03 11:00:10 +02:00
parent 03419132b4
commit 3272268859
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 8 additions and 0 deletions

View File

@ -69,6 +69,14 @@
group: alain
mode: 0644
- name: Alain peut se redémarrer tout seul
lineinfile:
path: /etc/sudoers
state: present
regexp: '^alain '
line: "alain ALL = NOPASSWD: /bin/systemctl restart alain.service"
validate: /usr/sbin/visudo -cf %s
handlers:
- name: restart alain
systemd: