summaryrefslogtreecommitdiffstats
path: root/roles/wireguard/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-11-14 16:08:04 +0100
committerAhmed Abdelhalim <[email protected]>2025-11-14 17:14:34 +0100
commitc809789becb8ecdd6872a679757a97f2b4b7776f (patch)
tree99ca013d6e09fb00b1de757d1aa06866a50ac322 /roles/wireguard/tasks
parent2db8a4f137da5e3addddce407ab892314ad6093d (diff)
Fix example config, and ignore rpi idempotent test failure
The reason the idempotent test fails is the following: - 1st run: wireguard role deploys all the configured VPN connections - 1st run: wg_portal updates the file permissions /etc/wireguard (ACLs) - 2nd run: wireguard sees the file changed, deploys again (idempotent failure)
Diffstat (limited to 'roles/wireguard/tasks')
-rw-r--r--roles/wireguard/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml
index b781f114..72c37a6a 100644
--- a/roles/wireguard/tasks/main.yml
+++ b/roles/wireguard/tasks/main.yml
@@ -40,6 +40,12 @@
mode: "0600"
loop: "{{ wireguard_connections.keys() }}"
when: wireguard_connections | length > 0
+ tags:
+ # The reason the test is ignored is the following:
+ # 1st run: wireguard role deploys all the configured VPN connections
+ # 1st run: wg_portal updates the (ACL) file permissions /etc/wireguard
+ # 2nd run: wireguard sees the file changed, deploys again (changed)
+ - molecule-idempotence-notest
- name: "Ensure all wireguard interfaces are disabled on startup"
become: true