added mode

This commit is contained in:
xpk
2019-01-21 19:01:34 +08:00
parent 266df1dcb9
commit 0f44dd5761
+1
View File
@@ -10,5 +10,6 @@
path: "/etc/sudoers.d/{{ user.name }}" path: "/etc/sudoers.d/{{ user.name }}"
create: yes create: yes
line: "{{ user.name }} ALL=(ALL) NOPASSWD: ALL" line: "{{ user.name }} ALL=(ALL) NOPASSWD: ALL"
mode: 0440
when: user.sudoers when: user.sudoers