Refs #8025 Role debian-base: Fail2ban task add register to do last step when jail.local changes

This commit is contained in:
Xavi Lleó 2024-10-15 12:28:15 +02:00
parent d141bc8a75
commit 6e0d940cc0
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@
group: root
mode: u=rw,g=r,o=r
notify: restart fail2ban
register: jail
- name: Ensure file for auth sshd custom log exists
file:
path: /var/log/auth.log
@ -17,3 +18,4 @@
owner: root
group: adm
mode: u=rw,g=r,o=
when: jail.changed