aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.