ansible-roles/library/centos/roles/firewalld/handlers/main.yml

17 lines
392 B
YAML
Raw Normal View History

2019-05-15 01:22:27 +02:00
---
- name: Enable and start firewalld
service: name=firewalld state=started enabled=yes
when: firewalld_enabled
- name: Reload firewall config
command: firewall-cmd --reload
notify: Restart fail2ban
when: firewalld_enabled
- name: Restart fail2ban
service: name=fail2ban state=restarted
when:
- fail2ban_enabled is defined and fail2ban_enabled
- centos_install_epel