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' 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' ]