Description of problem: firewalld module is not working due to missing python-firewall package Version-Release number of selected component (if applicable): Fedora 28 How reproducible: Always Steps to Reproduce: 1. execute task adding firewalld rich rule Actual results: TASK [munin-node : firewalld permits munin-node service] ********************************************************************************************************************************************************** fatal: [...]: FAILED! => {"changed": false, "msg": "Python Module not found: firewalld and its python module are required for this module, version 0.2.11 or newer required (0.3.9 or newer for offline operations)"} Expected results: Rich rule created
In Fedora 28 and later, firewalld has dropped it's python2 bindings and only has python3 ones. Thus you will need to tell ansible to use python3 on that target. See: https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html for details, but you want to set 'ansible_python_interpreter=/usr/bin/python3' In ansible 2.8 or so they plan to try and autodetect the python version to use on the target(s), in the mean time sorry for the confusion.