summaryrefslogtreecommitdiffstats
path: root/group_vars/all.yml.example
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
commit16b43088143541b91bfb05e64d2dee07189aeb0f (patch)
tree543763718010aa433346f0ead57602a70a88c813 /group_vars/all.yml.example
parent004c7ecbbf8768955e964ef4323566079b22603d (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/all.yml.example')
-rw-r--r--group_vars/all.yml.example4
1 files changed, 3 insertions, 1 deletions
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