e4e8c0998f
* add jinja2 extension 'jinja2.ext.do' to ansible.cfg * add host kichererbse.freifunk-mwu.de * add new server_type 'mesh-service' and new host group 'ffmwu-mesh-services' * use new loopback and anycast networks * add role wireguard * add role wireguard as dependency for roles network-routing + service-bird * add playbook 'mesh-services'
12 lines
356 B
Django/Jinja
12 lines
356 B
Django/Jinja
# {{ ansible_managed }}
|
|
#
|
|
# {{ inventory_hostname }} wg_{{ item.remote[:13] }} configuration
|
|
#
|
|
[Interface]
|
|
PrivateKey = {{ wireguard_private_key }}
|
|
ListenPort = {{ item.port }}
|
|
|
|
[Peer]
|
|
Endpoint = {{ item.remote_hostname }}:{{ item.port }}
|
|
PublicKey = {{ lookup('passwordstore', 'wireguard/' + item.remote + ' subkey=public') }}
|
|
AllowedIPs = 0.0.0.0/0,::/0
|