forked from jakub/ansible
Update initial_install/roles/users/tasks/main.yml
This commit is contained in:
@@ -39,7 +39,8 @@
|
||||
mode: '0440'
|
||||
owner: root
|
||||
group: root
|
||||
content: "{{ item.name }} ALL=(ALL:ALL) NOPASSWD: ALL\n"
|
||||
content: |
|
||||
{{ item.name }} ALL=(ALL:ALL) NOPASSWD: ALL
|
||||
validate: 'visudo -cf %s'
|
||||
loop: "{{ users }}"
|
||||
when: item.sudo_nopasswd | default(false)
|
||||
|
||||
Reference in New Issue
Block a user