
24 May
2022
24 May
'22
12:38 p.m.
Sorry. My fault. ansible -m firewalld -a state=enabled localhost -e ansible_python_interpreter=/usr/bin/python3 returns localhost | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: root@localhost: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).", "unreachable": true } This is since I added the path /usr/bin/python to ansible.cfg. Previously it returned localhost | 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)" }