From bea4027f0c2b5beebf409a00e7b61e923f4fea0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Fri, 15 Jun 2018 15:53:47 -0400 Subject: [PATCH] common: start firewalld if configure_firewall MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Currently we expect that if configure_firewall is set to True to have firewalld enabled and running. Let's enforce that. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1589146 Signed-off-by: Sébastien Han --- roles/ceph-common/tasks/misc/configure_firewall_rpm.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/ceph-common/tasks/misc/configure_firewall_rpm.yml b/roles/ceph-common/tasks/misc/configure_firewall_rpm.yml index b422a4763..9bd452352 100644 --- a/roles/ceph-common/tasks/misc/configure_firewall_rpm.yml +++ b/roles/ceph-common/tasks/misc/configure_firewall_rpm.yml @@ -10,6 +10,14 @@ tags: - firewall +- name: start firewalld + service: + name: firewalld + state: started + enabled: yes + when: + - firewalld_pkg_query.rc == 0 + - name: open monitor ports firewalld: service: ceph-mon -- 2.39.5