ceph-infra: install firewalld python bindings

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 90b1fc8fe9)
pull/5113/head
Dimitri Savineau 2019-11-15 10:37:27 -05:00 committed by Guillaume Abrioux
parent 424a0ce4ab
commit eb2fba79fc
1 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,12 @@
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