UPD: making ad_sudoers_group optional

This commit is contained in:
xpk
2020-02-21 13:37:21 +08:00
parent 9a325645c3
commit 20e98f1109
+1 -1
View File
@@ -114,7 +114,7 @@
line: '%{{ ad_sudoers_group }} ALL=(ALL) NOPASSWD: ALL' line: '%{{ ad_sudoers_group }} ALL=(ALL) NOPASSWD: ALL'
state: present state: present
create: yes create: yes
when: ad_sudoers_group != "" when: ad_sudoers_group is defined
- name: Check if {{ ad_joinusr }}@{{ ad_domain }} exists - name: Check if {{ ad_joinusr }}@{{ ad_domain }} exists
shell: id {{ ad_joinusr }}@{{ ad_domain }} shell: id {{ ad_joinusr }}@{{ ad_domain }}