summaryrefslogtreecommitdiffstats
path: root/roles/firewall/tasks/main.yml
blob: 49f08a1795c80c6d5a1f7bfc578772e22767b3e7 (plain)
1
2
3
4
5
6
7
8
9
10
---
- name: Ensure firewalld is running
  service: name=firewalld state=started enabled=yes

- name: Configure firewalld
  firewalld: service="dns" state="enabled" permanent="true" immediate="true"

- name: Reload firewalld rules
  shell: firewall-cmd --reload