The ansible firewalld module is great for adding rules, but old rules are left in place.

How can I achieve a guaranteed final state using the firewalld module?

Specifically, I would like a role that results in each host having identical firewall rules, regardless of their initial state and without having to know all previous rules.

I have tried setting a zone to absent, and then back to present, but this is not allowed for built-in zones.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.