aboutsummaryrefslogtreecommitdiffstats
path: root/roles/wireguard/tasks
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-01-20 00:14:45 +0100
committerbinary <me@rgoncalves.se>2021-01-20 00:14:45 +0100
commit28cab93735128358542fe9374930f448636aa557 (patch)
tree5525550d6d95dad7b85a97510a89bfa23f5eb430 /roles/wireguard/tasks
parentdaeec7e455ff75c6be9ce236c628b4b8f76f516a (diff)
downloadinfrastructure-28cab93735128358542fe9374930f448636aa557.tar.gz
Fix domain controller name with gloabl var lookup
Diffstat (limited to 'roles/wireguard/tasks')
-rw-r--r--roles/wireguard/tasks/main.yml4
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
remember that computers suck.