aboutsummaryrefslogtreecommitdiffstats
path: root/roles/wireguard/tasks/set_facts.yml
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-12 14:29:49 +0100
committerbinary <me@rgoncalves.se>2020-11-12 14:29:49 +0100
commitb419094cda74405eb4cbb8b7031b53cd2f347566 (patch)
treee3e6de54517612ebc96a6d3804848637562103a4 /roles/wireguard/tasks/set_facts.yml
parent9007e995ed14f92af8fe57fbe9ced0047d2a5634 (diff)
downloadinfrastructure-b419094cda74405eb4cbb8b7031b53cd2f347566.tar.gz
Refactor and cleanup old roles
Diffstat (limited to 'roles/wireguard/tasks/set_facts.yml')
-rw-r--r--roles/wireguard/tasks/set_facts.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/wireguard/tasks/set_facts.yml b/roles/wireguard/tasks/set_facts.yml
new file mode 100644
index 0000000..933ca9d
--- /dev/null
+++ b/roles/wireguard/tasks/set_facts.yml
@@ -0,0 +1,13 @@
+
+# wireguard ~~ tasks/set_facts.yml
+
+---
+
+- set_fact:
+ 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_host_conf: "{{ wg_dir }}/{{ ansible_host }}.conf"
+ wg_host_keys: "{{ wg_dir }}/{{ ansible_host }}.keys"
remember that computers suck.