summaryrefslogtreecommitdiff
path: root/module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j2
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-02-01 16:00:15 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2021-02-01 16:00:15 +0100
commit2726bd8739b78738745a462a4950b39cbfe4c1d7 (patch)
treed2eb61004faa66491a14476b2da7c821529dd5ca /module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j2
parent59ef07a9f583f0f0f64055a47938d57516b43541 (diff)
downloadrules-sandbox-2726bd8739b78738745a462a4950b39cbfe4c1d7.tar.gz
rules-sandbox-2726bd8739b78738745a462a4950b39cbfe4c1d7.tar.bz2
rules-sandbox-2726bd8739b78738745a462a4950b39cbfe4c1d7.tar.xz
rules-sandbox-2726bd8739b78738745a462a4950b39cbfe4c1d7.zip
wireguard.
Diffstat (limited to 'module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j2')
-rw-r--r--module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j26
1 files changed, 6 insertions, 0 deletions
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 %}