diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-14 02:05:30 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-14 02:11:03 +0200 |
| commit | 671c9d6b0811e7d269816d1423735abb6bd205b2 (patch) | |
| tree | c3870ebee5238457c077f9c6368d76006b38c867 /roles/wg_portal | |
| parent | da087b6ce1474decc9e9364f4b9a4d538b84227e (diff) | |
Put back the idempotent ignore test
The idempotent test is only failing on the second run,
the reason is, on the first run the wireguard files are created with
default permissions, then the wg_portal role update the ACL.
On the second run, the wireguard role recognizes the difference in the
permissions, and update the files (expectedly), the default ACL then
takes place and set the permissions correctly with ACLs
On any successive run, the role is idempotent and doesn't update the
files again.
Diffstat (limited to 'roles/wg_portal')
| -rw-r--r-- | roles/wg_portal/tasks/main.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/wg_portal/tasks/main.yml b/roles/wg_portal/tasks/main.yml index 2b0eb3a7..edc04e21 100644 --- a/roles/wg_portal/tasks/main.yml +++ b/roles/wg_portal/tasks/main.yml @@ -53,6 +53,7 @@ etype: "group" permissions: "rx" recursive: true + default: true state: "present" - name: "Set ACL mask for /etc/wireguard" @@ -62,6 +63,7 @@ etype: "mask" permissions: "rx" recursive: true + default: true state: "present" - name: "Create wg-portal sudoers file" |
