From eecf4f5448037457314516ee2a97cd9b0a7c9dd3 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 23 Oct 2024 21:41:54 +0200 Subject: [PATCH] dfg --- roles/mgrote_users/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mgrote_users/tasks/main.yml b/roles/mgrote_users/tasks/main.yml index 8e9aeaa2..fc1f905b 100644 --- a/roles/mgrote_users/tasks/main.yml +++ b/roles/mgrote_users/tasks/main.yml @@ -42,9 +42,9 @@ name: "users-sudo-{{ item.username }}" state: "{{ item.state | default('present') }}" user: "{{ item.username }}" - commands: "ALL=(ALL)" + commands: ALL nopassword: "{{ item.allow_passwordless_sudo }}" - validation: absent #todo + validation: absent #todo required loop: '{{ users }}' when: item.allow_sudo|default(false) and item.allow_sudo is defined #no_log: true