From 5d549af643bd499509b2900d4722a02b6ff16bb7 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 5 Sep 2017 15:24:51 +0200 Subject: [PATCH] evomainteance should not install the trap itself Not all users with a shell are sudoers. --- evomaintenance/tasks/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/evomaintenance/tasks/main.yml b/evomaintenance/tasks/main.yml index 5837287c..4be99c58 100644 --- a/evomaintenance/tasks/main.yml +++ b/evomaintenance/tasks/main.yml @@ -14,14 +14,14 @@ src: evomaintenance.j2 dest: /etc/evomaintenance.cf -- name: list users with a shell - shell: "cat /etc/passwd | grep -vE \"^root:\" | grep -E \":/[^:]+sh$\" | cut -d: -f6" - changed_when: False - check_mode: no - register: home_of_shell_users - -- include: trap.yml home={{ item }} - with_items: "{{ home_of_shell_users.stdout_lines }}" +# - name: list users with a shell +# shell: "cat /etc/passwd | grep -vE \"^root:\" | grep -E \":/[^:]+sh$\" | cut -d: -f6" +# changed_when: False +# check_mode: no +# register: home_of_shell_users +# +# - include: trap.yml home={{ item }} +# with_items: "{{ home_of_shell_users.stdout_lines }}" - name: Is minifirewall installed? stat: