]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-infra: install firewalld python bindings
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 15 Nov 2019 15:37:27 +0000 (10:37 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 2 Mar 2020 15:32:06 +0000 (16:32 +0100)
When using the firewalld ansible module we need to be sure that the
python bindings are installed.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-infra/tasks/configure_firewall.yml

index acf730097dff86ffeb18aed3386ff0035e094e58..13c6b074f5f417dada2562071d954b875de144be 100644 (file)
       or is_atomic | bool)
   tags: firewall
   block:
+    - name: install firewalld python binding
+      package:
+        name: "python{{ ansible_python.version.major }}-firewall"
+      tags: with_pkg
+      when: not is_atomic | bool
+
     - name: start firewalld
       service:
         name: firewalld