Closed dmitry-a-l closed 7 years ago
When I run playbook on the system without firewalld, I've got an error:
TASK [geerlingguy.firewall : Disable the firewalld service (on RHEL, if configured).] *** task path: ...roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml:2 ... fatal: [localhost]: FAILED! => { "changed": false, "failed": true, "invocation": { "module_args": { "daemon_reload": false, "enabled": false, "masked": null, "name": "firewalld", "state": "stopped", "user": false } }, "msg": "Could not find the requested service firewalld: cannot disable" }
So I think we must check that firewalld package installed before disabling it.
Makes sense, allows for a little more flexibility in role usage (you don't have to worry about drift between different OS releases, etc.).
When I run playbook on the system without firewalld, I've got an error:
So I think we must check that firewalld package installed before disabling it.