summaryrefslogtreecommitdiffstats
path: root/roles/base
diff options
context:
space:
mode:
Diffstat (limited to 'roles/base')
-rw-r--r--roles/base/tasks/main.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml
index 7fd4b66..37bce1f 100644
--- a/roles/base/tasks/main.yml
+++ b/roles/base/tasks/main.yml
@@ -12,4 +12,10 @@
- chrony
- service: name=chronyd state=running enabled=yes
-
+
+- name: install firewalld on centos7
+ yum: pkg=firewalld state=installed
+ when: ansible_distribution == 'Fedora' or ansible_distribution_major_version == '7'
+
+- service: name=firewalld state=started enabled=yes
+ when: ansible_distribution == 'Fedora' or ansible_distribution_major_version == '7'