forked from ISTI-ansible-roles/ansible-roles
Fix a condition.
This commit is contained in:
parent
cb72f67f73
commit
2831ead215
|
@ -94,7 +94,6 @@
|
||||||
regexp: '^%{{ deb_users_sudoers_group }}\s'
|
regexp: '^%{{ deb_users_sudoers_group }}\s'
|
||||||
line: '%{{ deb_users_sudoers_group }} ALL=(ALL) NOPASSWD: ALL'
|
line: '%{{ deb_users_sudoers_group }} ALL=(ALL) NOPASSWD: ALL'
|
||||||
when: ansible_distribution_file_variety == "Debian"
|
when: ansible_distribution_file_variety == "Debian"
|
||||||
tags: [ 'users', 'sudo_wheel' ]
|
|
||||||
|
|
||||||
- name: Change the sudo configuration to permit sudo without password on RH/CentOS systems
|
- name: Change the sudo configuration to permit sudo without password on RH/CentOS systems
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
@ -102,7 +101,7 @@
|
||||||
state: present
|
state: present
|
||||||
regexp: '^%{{ rh_users_sudoers_group }}\s'
|
regexp: '^%{{ rh_users_sudoers_group }}\s'
|
||||||
line: '%{{ rh_users_sudoers_group }} ALL=(ALL) NOPASSWD: ALL'
|
line: '%{{ rh_users_sudoers_group }} ALL=(ALL) NOPASSWD: ALL'
|
||||||
when: ansible_distribution_file_variety == "RedHat"
|
when: ansible_distribution_file_variety == "RedHat"
|
||||||
|
|
||||||
tags: [ 'users', 'sudo_wheel' ]
|
tags: [ 'users', 'sudo_wheel' ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue