summaryrefslogtreecommitdiffstats
path: root/group_vars
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2025-11-13 21:27:01 +0100
committerAhmed AbdelHalim <[email protected]>2025-11-13 22:33:47 +0100
commitd557007188bcde5b8863049047c023dae0f91e79 (patch)
tree543763718010aa433346f0ead57602a70a88c813 /group_vars
parent40123ac06a2574d1419dc47cb920a8acba416987 (diff)
Add mechanism to clean up wireguard configurations
When a wireguard configuration gets removed from the group/host variables, the role now removes them and make sure only the files found in the vars are the ones to be configured on the hosts
Diffstat (limited to 'group_vars')
-rw-r--r--group_vars/all.ymlbin3947 -> 4217 bytes
-rw-r--r--group_vars/all.yml.example4
2 files changed, 3 insertions, 1 deletions
diff --git a/group_vars/all.yml b/group_vars/all.yml
index 450653bf..381f3c1a 100644
--- a/group_vars/all.yml
+++ b/group_vars/all.yml
Binary files differ
diff --git a/group_vars/all.yml.example b/group_vars/all.yml.example
index 0e9dd8c9..a4e90f14 100644
--- a/group_vars/all.yml.example
+++ b/group_vars/all.yml.example
@@ -58,7 +58,9 @@ vimrc_setup_script: |
wireguard_autostart_connection: "wg-vpn0"
wireguard_connections:
- wg-vpn0: |
+ # All wireguard config files are prefixed with wg-
+ # The following connection will be named wg-vpn0
+ vpn0: |
[Interface]
PrivateKey = your_private_key_here
Address = 10.2.0.2/32