]> 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>
Tue, 3 Mar 2020 09:31:48 +0000 (10:31 +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>
(cherry picked from commit 90b1fc8fe94a5349ca6f2e42f578636a877dc5d3)

roles/ceph-infra/tasks/configure_firewall.yml

index 7ccb2c36c6896c2205a34da5033f68817d54093d..0acf5bbd6cfd32270c44ac45f62c99e1fe9d2973 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