Alain can sudo systemctl restart alain.
This commit is contained in:
parent
03419132b4
commit
3272268859
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue