Update initial_install/roles/users/tasks/main.yml

This commit is contained in:
2026-04-24 20:16:31 +00:00
parent 04ce966b20
commit 22413beb25
+2 -1
View File
@@ -39,7 +39,8 @@
mode: '0440' mode: '0440'
owner: root owner: root
group: root group: root
content: "{{ item.name }} ALL=(ALL:ALL) NOPASSWD: ALL\n" content: |
{{ item.name }} ALL=(ALL:ALL) NOPASSWD: ALL
validate: 'visudo -cf %s' validate: 'visudo -cf %s'
loop: "{{ users }}" loop: "{{ users }}"
when: item.sudo_nopasswd | default(false) when: item.sudo_nopasswd | default(false)