mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Using file module instead of chmod (Fixes #326)
New pull request to fix following warning. [WARNING]: Consider using file module with mode rather than running chmod
This commit is contained in:
parent
1d8e946b91
commit
7240d90bc5
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…
Reference in a new issue