Use ansible ipaddr filters

This commit is contained in:
Markus 2017-03-27 17:36:59 +02:00
parent c41dbeecd0
commit aca365e7b0
5 changed files with 17 additions and 10 deletions

View File

@ -3,6 +3,7 @@ Ansible Freifunk Regensburg
## Requirements
The python package netaddr is required on the host running ansible.
The vault password must be stored in `.vault_pass`.

View File

@ -1,6 +1,8 @@
---
batman_ipv4:
address: 10.90.0.11
batman_ipv4: 10.90.0.11/19
batman_ipv6: fdef:1337:f00f:cafe::11/64
site_code: ffrgb_stadt
gateway_id: 11
site_code: ffr_stadt

View File

@ -1,6 +1,8 @@
---
batman_ipv4:
address: 10.90.32.21
batman_ipv4: 10.90.32.21/19
batman_ipv6: fdef:1337:f10f:cafe::21/64
site_code: ffrgb_umland
gateway_id: 21
site_code: ffr_umland

View File

@ -1,6 +1,8 @@
---
batman_ipv4:
address: 10.90.192.31
batman_ipv4: 10.90.192.31/19
batman_ipv6: fdef:1337:f60f:cafe::31/64
site_code: ffrgb_test
gateway_id: 31
site_code: ffr_test

View File

@ -19,7 +19,7 @@ dnssec=off
#################################
# local-address IP addresses to listen on, separated by spaces or commas. Also accepts ports.
#
local-address=127.0.0.1,{{ batman_ipv4.address }}
local-address=127.0.0.1,{{ batman_ipv4 | ipaddr('address') }}
#################################
# local-port port to listen on