Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Firewalld: direct rules support #21439
OS / ENVIRONMENT
Fedora 25 Server
It is not currently possible to reproduce configurations such as that created by running
See previous issue at ansible/ansible-modules-extras#209.
So, as I did needed that, but the code of firewalld module was a bit too complex to undertand fast (and needed the feature for another task), I did wrote a separate module: https://github.com/gluster/gluster.org_ansible_configuration/tree/master/roles/firewalld_direct/library
It is not much documented or anything (yet), but feel free to use that code to add the feature
I am not sure that all feature should be added to the same module. For example, now, I have a need for adding a zone (because I decided to do a whole firewall using firewalld and ansible), and I think this would be better as a separate module. But then, would services, port, etc be better splitted as well ?
referenced this issue
Oct 25, 2017
Hi there. I'd need the direct rule support as well. I'm also not sure whether this should be a separate module because it will add some more possible args to the module (type, table, chain, priority and arg).