Simple role to manage firewalld rules (port opening)
none
port
- The port to openpublic
- If set to true, the port will be open to the worldallowed_ips
- Instead of setting public to true, you can pass a list of ipv4 address to allow
none
- hosts: servers
roles:
- { role: firewalld, port: 80, public: true }
- { role: firewalld, port: 8080, allowed_ips: ['192.168.1.23'] }
MIT