vn-ansible/roles/config-fail2ban/handlers/main.yaml

10 lines
252 B
YAML

# restart fail2ban service to apply changes
- name: restart fail2ban
service:
name: "{{ fail2ban_daemon }}"
state: restarted
# restart nftables service
- name: restart nftables
service:
name: "{{ nftables_daemon }}"
state: restarted