UPD: making ad_sudoers_group optional
This commit is contained in:
+1
-1
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user