summaryrefslogtreecommitdiff
path: root/j2/wireguard/inventory.j2
diff options
context:
space:
mode:
Diffstat (limited to 'j2/wireguard/inventory.j2')
-rw-r--r--j2/wireguard/inventory.j28
1 files changed, 5 insertions, 3 deletions
diff --git a/j2/wireguard/inventory.j2 b/j2/wireguard/inventory.j2
index c7f38ee..0924bb2 100644
--- a/j2/wireguard/inventory.j2
+++ b/j2/wireguard/inventory.j2
@@ -1,5 +1,7 @@
# Generated
all:
-{%- for host in hosts %}
- {{ host.name }}: {{ host.fqdn }}
-{%- endfor %}
+ hosts:
+ {%- for host in hosts %}
+ {{ host.getName() }}:
+ ansible_host: {{ host.getFqdn() }}
+ {%- endfor %}