evomainteance should not install the trap itself
Not all users with a shell are sudoers.
This commit is contained in:
parent
a18fdd0ab2
commit
5d549af643
|
@ -14,14 +14,14 @@
|
||||||
src: evomaintenance.j2
|
src: evomaintenance.j2
|
||||||
dest: /etc/evomaintenance.cf
|
dest: /etc/evomaintenance.cf
|
||||||
|
|
||||||
- name: list users with a shell
|
# - name: list users with a shell
|
||||||
shell: "cat /etc/passwd | grep -vE \"^root:\" | grep -E \":/[^:]+sh$\" | cut -d: -f6"
|
# shell: "cat /etc/passwd | grep -vE \"^root:\" | grep -E \":/[^:]+sh$\" | cut -d: -f6"
|
||||||
changed_when: False
|
# changed_when: False
|
||||||
check_mode: no
|
# check_mode: no
|
||||||
register: home_of_shell_users
|
# register: home_of_shell_users
|
||||||
|
#
|
||||||
- include: trap.yml home={{ item }}
|
# - include: trap.yml home={{ item }}
|
||||||
with_items: "{{ home_of_shell_users.stdout_lines }}"
|
# with_items: "{{ home_of_shell_users.stdout_lines }}"
|
||||||
|
|
||||||
- name: Is minifirewall installed?
|
- name: Is minifirewall installed?
|
||||||
stat:
|
stat:
|
||||||
|
|
Loading…
Reference in New Issue