ENH: adding sudoers validation

This commit is contained in:
xpk
2020-02-21 14:12:36 +08:00
parent 20e98f1109
commit cd517b4d89
+1
View File
@@ -114,6 +114,7 @@
line: '%{{ ad_sudoers_group }} ALL=(ALL) NOPASSWD: ALL'
state: present
create: yes
validate: visudo -cf %s
when: ad_sudoers_group is defined
- name: Check if {{ ad_joinusr }}@{{ ad_domain }} exists