Import friwall role from network ansible scripts

To reuse alpine and nginx roles. Probably going to merge repos at some point.
This commit is contained in:
Timotej Lazar 2024-07-04 15:01:47 +02:00
parent bacfc66f7c
commit 973522c373
14 changed files with 249 additions and 1 deletions

View file

@ -0,0 +1,14 @@
auto lo
iface lo inet loopback
{% for iface in interfaces %}
auto {{ iface.name }}
iface {{ iface.name }} inet static
{% for address in iface.ip_addresses %}
address {{ address.address }}
{% endfor %}
{% if iface.custom_fields.gateway %}
gateway {{ iface.custom_fields.gateway.address | ipaddr('address') }}
{% endif %}
{% endfor %}