From 28cab93735128358542fe9374930f448636aa557 Mon Sep 17 00:00:00 2001 From: binary Date: Wed, 20 Jan 2021 00:14:45 +0100 Subject: Fix domain controller name with gloabl var lookup --- roles/wireguard/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml index 5ae3a97..26dfbf6 100644 --- a/roles/wireguard/tasks/main.yml +++ b/roles/wireguard/tasks/main.yml @@ -39,7 +39,7 @@ when: ansible_host != global.dcontroller delegate_to: "{{ item.name }}" loop: - - { name: "{{ ansible_host }}", path: /etc/wireguard/dcontroller.conf } + - { name: "{{ ansible_host }}", path: "/etc/wireguard/{{ global.dcontroller }}.conf" } - { name: localhost, path: "{{ wg_dir }}/{{ ansible_host }}.conf" } ignore_unreachable: true @@ -51,7 +51,7 @@ when: ansible_host == global.dcontroller delegate_to: "{{ item.name }}" loop: - - { name: "{{ ansible_host }}", path: /etc/wireguard/dcontroller.conf } + - { name: "{{ ansible_host }}", path: "/etc/wireguard/{{ global.dcontroller }}.conf" } - { name: localhost, path: "{{ wg_dir }}/{{ ansible_host }}.conf" } - name: enable wireguard for freebsd -- cgit v1.2.3