aboutsummaryrefslogtreecommitdiffstats
path: root/roles/wireguard/tasks/set_facts.yml
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-20 19:20:55 +0100
committerbinary <me@rgoncalves.se>2020-11-20 19:20:55 +0100
commitc110f9a103c2f676917e3fe5e33f4eaedfed070c (patch)
tree072f1b019ae7d0c39a0cbd9d88257688203edddc /roles/wireguard/tasks/set_facts.yml
parentb739e2af7060cd10f65d97cd0bfc0e9adb7a5490 (diff)
downloadinfrastructure-c110f9a103c2f676917e3fe5e33f4eaedfed070c.tar.gz
Refactor wireguard role with new host declaration.
Diffstat (limited to 'roles/wireguard/tasks/set_facts.yml')
-rw-r--r--roles/wireguard/tasks/set_facts.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/wireguard/tasks/set_facts.yml b/roles/wireguard/tasks/set_facts.yml
index 933ca9d..7e042ea 100644
--- a/roles/wireguard/tasks/set_facts.yml
+++ b/roles/wireguard/tasks/set_facts.yml
@@ -4,10 +4,10 @@
---
- set_fact:
- wg_dir: "{{ inventory_dir}}/files/wireguard"
+ wg_dir: "{{ inventory_dir }}/files/wireguard"
- set_fact:
- wg_dcontroller_conf: "{{ wg_dir }}/{{ _i.dcontroller }}.conf"
- wg_dcontroller_keys: "{{ wg_dir }}/{{ _i.dcontroller }}.keys"
+ wg_dcontroller_conf: "{{ wg_dir }}/{{ global.dcontroller }}.conf"
+ wg_dcontroller_keys: "{{ wg_dir }}/{{ global.dcontroller }}.keys"
wg_host_conf: "{{ wg_dir }}/{{ ansible_host }}.conf"
wg_host_keys: "{{ wg_dir }}/{{ ansible_host }}.keys"
remember that computers suck.