]> git.apps.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)
committerSébastien Han <seb@redhat.com>
Mon, 18 Jun 2018 08:02:50 +0000 (04:02 -0400)
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>
roles/ceph-common/tasks/misc/configure_firewall_rpm.yml

index b422a47637c7a5c07fdf168b881268105564035f..9bd452352fe3d74991f1678b8e4f5b6d3816687f 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