summaryrefslogtreecommitdiff
path: root/module/ri-wireguard/src/main/resources/templates/wireguard/ansible.j2
diff options
context:
space:
mode:
Diffstat (limited to 'module/ri-wireguard/src/main/resources/templates/wireguard/ansible.j2')
-rw-r--r--module/ri-wireguard/src/main/resources/templates/wireguard/ansible.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/module/ri-wireguard/src/main/resources/templates/wireguard/ansible.j2 b/module/ri-wireguard/src/main/resources/templates/wireguard/ansible.j2
index 82c0ca0..bca3e8c 100644
--- a/module/ri-wireguard/src/main/resources/templates/wireguard/ansible.j2
+++ b/module/ri-wireguard/src/main/resources/templates/wireguard/ansible.j2
@@ -1,6 +1,6 @@
-- hosts: {{ net.name }}
+- hosts: wireguard_{{ net.name }}
roles:
- name: wireguard
wireguard_if: {{ net.name }}
wireguard_listen_port: 45364
- wireguard_address4: "{{ '{{' }} link_addresses[ansible_hostname] }}"
+ wireguard_address4: "{{ '{{' }} link_address }}"