summaryrefslogtreecommitdiffstats
path: root/roles/firewall/tasks
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2017-04-21 02:47:22 +0200
committerSuren A. Chilingaryan <csa@suren.me>2017-04-21 02:47:22 +0200
commitcd94e324d3401e518578d91382a2b7ee67562112 (patch)
treee9d84bd50a801632fd907eaa7ff372073c40a3cf /roles/firewall/tasks
parent681b504fcab8aeb6669d68f95b436fb9fdca87c7 (diff)
downloadands-cd94e324d3401e518578d91382a2b7ee67562112.tar.gz
ands-cd94e324d3401e518578d91382a2b7ee67562112.tar.bz2
ands-cd94e324d3401e518578d91382a2b7ee67562112.tar.xz
ands-cd94e324d3401e518578d91382a2b7ee67562112.zip
Fix internal DNS service configuration
Diffstat (limited to 'roles/firewall/tasks')
-rw-r--r--roles/firewall/tasks/main.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/firewall/tasks/main.yml b/roles/firewall/tasks/main.yml
new file mode 100644
index 0000000..49f08a1
--- /dev/null
+++ b/roles/firewall/tasks/main.yml
@@ -0,0 +1,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
+