diff options
author | binary <me@rgoncalves.se> | 2021-01-20 00:14:45 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2021-01-20 00:14:45 +0100 |
commit | 28cab93735128358542fe9374930f448636aa557 (patch) | |
tree | 5525550d6d95dad7b85a97510a89bfa23f5eb430 /roles | |
parent | daeec7e455ff75c6be9ce236c628b4b8f76f516a (diff) | |
download | infrastructure-28cab93735128358542fe9374930f448636aa557.tar.gz |
Fix domain controller name with gloabl var lookup
Diffstat (limited to 'roles')
-rw-r--r-- | roles/wireguard/tasks/main.yml | 4 |
1 files 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 |