diff options
author | Michael Scherer <misc@zarb.org> | 2014-12-12 13:55:03 +0100 |
---|---|---|
committer | Michael Scherer <misc@zarb.org> | 2014-12-12 13:55:03 +0100 |
commit | 3f832766198608d2f154d31a81beb526d1776c96 (patch) | |
tree | c130d3e4d387e8e171b7d4bb3c164dd77077f344 /roles/base | |
parent | e7fc28f43ff210574682445ba62239f840888b76 (diff) |
Add firewalld on centos/fedora
Diffstat (limited to 'roles/base')
-rw-r--r-- | roles/base/tasks/main.yml | 8 |
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' |