From 3f832766198608d2f154d31a81beb526d1776c96 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 12 Dec 2014 13:55:03 +0100 Subject: Add firewalld on centos/fedora --- roles/base/tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'roles') 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' -- cgit