diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-07 12:20:02 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-07 12:20:02 +0100 |
commit | 70d0ad3c9f37e44a9504a0d7f66e412a3f3bba6f (patch) | |
tree | 623815a975541ebba1fba8208bd2b3e984ceb9d4 /j2/wireguard | |
parent | ede2372547db659e7b0e9cfd3b531ff542018229 (diff) | |
download | rules-sandbox-70d0ad3c9f37e44a9504a0d7f66e412a3f3bba6f.tar.gz rules-sandbox-70d0ad3c9f37e44a9504a0d7f66e412a3f3bba6f.tar.bz2 rules-sandbox-70d0ad3c9f37e44a9504a0d7f66e412a3f3bba6f.tar.xz rules-sandbox-70d0ad3c9f37e44a9504a0d7f66e412a3f3bba6f.zip |
More Wireguard.
Fixing broken myapps too.
Diffstat (limited to 'j2/wireguard')
-rw-r--r-- | j2/wireguard/ansible-host.j2 | 5 | ||||
-rw-r--r-- | j2/wireguard/inventory.j2 | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/j2/wireguard/ansible-host.j2 b/j2/wireguard/ansible-host.j2 index 63a8d51..72273ef 100644 --- a/j2/wireguard/ansible-host.j2 +++ b/j2/wireguard/ansible-host.j2 @@ -1,3 +1,8 @@ # Generated link_address: {{ link }} network_cidr: {{ network }} +wireguard_peers: + {{ host.name }}: +{%- for peer in peers %} + - {{ peer }} +{%- endfor %} diff --git a/j2/wireguard/inventory.j2 b/j2/wireguard/inventory.j2 new file mode 100644 index 0000000..c7f38ee --- /dev/null +++ b/j2/wireguard/inventory.j2 @@ -0,0 +1,5 @@ +# Generated +all: +{%- for host in hosts %} + {{ host.name }}: {{ host.fqdn }} +{%- endfor %} |