evomainteance should not install the trap itself

Not all users with a shell are sudoers.
This commit is contained in:
Jérémy Lecour 2017-09-05 15:24:51 +02:00 committed by Jérémy Lecour
parent a18fdd0ab2
commit 5d549af643
1 changed files with 8 additions and 8 deletions

View File

@ -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: