From 2726bd8739b78738745a462a4950b39cbfe4c1d7 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 1 Feb 2021 16:00:15 +0100 Subject: wireguard. --- .../src/main/resources/templates/wireguard/inventory.j2 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j2') diff --git a/module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j2 b/module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j2 index 0924bb2..64f3b5b 100644 --- a/module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j2 +++ b/module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j2 @@ -5,3 +5,9 @@ all: {{ host.getName() }}: ansible_host: {{ host.getFqdn() }} {%- endfor %} + children: + wireguard_{{ net.name }}: + hosts: +{%- for host in hosts %} + {{ host.getName() }}: +{%- endfor %} -- cgit v1.2.3