From 2831ead215a112a0044cda6c29b84ff8d2f2bf96 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 10 Apr 2019 13:14:04 +0200 Subject: [PATCH] Fix a condition. --- users/tasks/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/users/tasks/main.yml b/users/tasks/main.yml index 0d80a56a..0b1bfd46 100644 --- a/users/tasks/main.yml +++ b/users/tasks/main.yml @@ -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' ]