1
0
Fork 0
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:
Arky 2017-10-20 12:11:33 +07:00
parent 1d8e946b91
commit 7240d90bc5

View file

@ -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