]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
common: start firewalld if configure_firewall
authorSébastien Han <seb@redhat.com>
Fri, 15 Jun 2018 19:53:47 +0000 (15:53 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 19 Jun 2018 13:04:26 +0000 (15:04 +0200)
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 <seb@redhat.com>
(cherry picked from commit bea4027f0c2b5beebf409a00e7b61e923f4fea0c)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-common/tasks/misc/configure_firewall_rpm.yml

index f6da3cb4f62f5f15db02a2e3c75eb836383f9752..7fbf0f22a1b8d43d7c5fa7d44b904378de4ea4b3 100644 (file)
   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