1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/fail2ban/handlers/main.yml
Phillip Smith 61d48f1173 implement fail2ban role and deploy to orion
fail2ban role now protects postfix, dovecot and sshd. other roles can drop
configuration files into /etc/fail2ban/jail.d/*.local to enable fail2ban to
monitor it's service.
2019-10-25 16:46:09 +11:00

8 lines
241 B
YAML

- name: restart fail2ban
systemd:
name: fail2ban
state: restarted
- name: reload fail2ban jails
shell: type fail2ban-server > /dev/null && (fail2ban-client ping > /dev/null && fail2ban-client reload > /dev/null || true) || true