roles/dch-openvpn-server: Use firemon_networks
The routes to FireMon networks are now defined using the `firemon_networks` Ansible variable. The global `iroute` and client-specific `route` options are generated from the CIDR blocks specified in this list.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
ifconfig-push 172.30.0.210 255.255.255.240
|
||||
{% for net in firemon_networks %}
|
||||
iroute {{ net|ipaddr('network') }} {{ net|ipaddr('netmask') }}
|
||||
{% endfor %}
|
||||
push "route 172.30.0.0 255.255.255.192 172.30.0.209"
|
||||
push "route 172.31.0.0 255.255.255.224 172.30.0.209"
|
||||
Reference in New Issue
Block a user