Fix a condition.

This commit is contained in:
Andrea Dell'Amico 2019-04-10 13:14:04 +02:00
parent cb72f67f73
commit 2831ead215
1 changed files with 1 additions and 2 deletions

View File

@ -94,7 +94,6 @@
regexp: '^%{{ deb_users_sudoers_group }}\s'
line: '%{{ deb_users_sudoers_group }} ALL=(ALL) NOPASSWD: ALL'
when: ansible_distribution_file_variety == "Debian"
tags: [ 'users', 'sudo_wheel' ]
- name: Change the sudo configuration to permit sudo without password on RH/CentOS systems
lineinfile:
@ -102,7 +101,7 @@
state: present
regexp: '^%{{ rh_users_sudoers_group }}\s'
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' ]