ENH: adding sudoers validation
This commit is contained in:
@@ -114,6 +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
|
||||||
|
validate: visudo -cf %s
|
||||||
when: ad_sudoers_group is defined
|
when: ad_sudoers_group is defined
|
||||||
|
|
||||||
- name: Check if {{ ad_joinusr }}@{{ ad_domain }} exists
|
- name: Check if {{ ad_joinusr }}@{{ ad_domain }} exists
|
||||||
|
|||||||
Reference in New Issue
Block a user