From 20e98f1109810b2ab088ce997b151c5311b43fae Mon Sep 17 00:00:00 2001 From: x p k Date: Fri, 21 Feb 2020 13:37:21 +0800 Subject: [PATCH] UPD: making ad_sudoers_group optional --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 1c894f1..d24f4e4 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -114,7 +114,7 @@ line: '%{{ ad_sudoers_group }} ALL=(ALL) NOPASSWD: ALL' state: present create: yes - when: ad_sudoers_group != "" + when: ad_sudoers_group is defined - name: Check if {{ ad_joinusr }}@{{ ad_domain }} exists shell: id {{ ad_joinusr }}@{{ ad_domain }}