robertdebock / ansible-role-firewall

Manage firewall ports on all (known) Linux operating systems.
https://robertdebock.nl/
Apache License 2.0
17 stars 15 forks source link

Allow adding a select interface to a selected zone. #14

Open flybyray opened 2 years ago

flybyray commented 2 years ago

Fixes #4


name: Pull request about: Describe the proposed change


Describe the change This patch allows to add an interface to a selected zone only on operating systems with firewalld. There is a new list variable firewall_interfaces. Example usage:

- role: ansible-role-firewall
  firewall_interfaces:
    - interface: eth0
      zone: trusted

Testing Tests where done in a new molecule scenario called physical (maybe rename or remove it if there are better options) only on selected operating systems which might be used with firewalld service.

dgibbs64 commented 1 year ago

This is exactly the feature I am after with this role +1 on this feature