Refs #8025 Role debian-base: Fail2ban task add register to do last step when jail.local changes
This commit is contained in:
parent
d141bc8a75
commit
6e0d940cc0
|
@ -10,6 +10,7 @@
|
||||||
group: root
|
group: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
notify: restart fail2ban
|
notify: restart fail2ban
|
||||||
|
register: jail
|
||||||
- name: Ensure file for auth sshd custom log exists
|
- name: Ensure file for auth sshd custom log exists
|
||||||
file:
|
file:
|
||||||
path: /var/log/auth.log
|
path: /var/log/auth.log
|
||||||
|
@ -17,3 +18,4 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: adm
|
group: adm
|
||||||
mode: u=rw,g=r,o=
|
mode: u=rw,g=r,o=
|
||||||
|
when: jail.changed
|
||||||
|
|
Loading…
Reference in New Issue