From e728c5d17e9793f32fa56287c09af188831610f7 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 1 Feb 2021 22:46:01 +0100 Subject: Wireguard. --- .../src/main/resources/templates/wireguard/ansible.j2 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'module/ri-wireguard/src/main/resources/templates/wireguard/ansible.j2') 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 bca3e8c..ad4d034 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,7 @@ - hosts: wireguard_{{ net.name }} - roles: + vars: + wireguard_if: {{ net.name }} + tasks: - name: wireguard - wireguard_if: {{ net.name }} - wireguard_listen_port: 45364 - wireguard_address4: "{{ '{{' }} link_address }}" + import_role: + name: wireguard -- cgit v1.2.3