mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
commit
17353e38e9
1 changed files with 4 additions and 2 deletions
|
@ -33,7 +33,8 @@
|
|||
# backup=yes
|
||||
|
||||
- name: Edit the sudoers file -- first make it editable
|
||||
shell: chmod 0640 /etc/sudoers
|
||||
file: path=/etc/sudoers
|
||||
mode=0640
|
||||
|
||||
- name: Have sudo log all commands it handles
|
||||
lineinfile: regexp=logfile
|
||||
|
@ -52,4 +53,5 @@
|
|||
dest=/etc/sudoers
|
||||
|
||||
- name: End editing the sudoers file -- protect it again
|
||||
shell: chmod 0440 /etc/sudoers
|
||||
file: path=/etc/sudoers
|
||||
mode=0440
|
||||
|
|
Loading…
Add table
Reference in a new issue