Browse Source

evomainteance should not install the trap itself

Not all users with a shell are sudoers.
evolinux-users
Jérémy Lecour 4 years ago
committed by Jérémy Lecour
parent
commit
5d549af643
  1. 16
      evomaintenance/tasks/main.yml

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

Loading…
Cancel
Save