diff options
| author | Ahmed AbdelHalim <[email protected]> | 2026-02-26 22:20:27 +0100 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2026-02-26 22:21:00 +0100 |
| commit | 35cf906865706fd9efc540aebe7bd0d0122f044b (patch) | |
| tree | e133abd61b3d99683601a477f00a25b9261cceaf /roles/network/tasks | |
| parent | c680d7fe797163f7fb20f59815a20e3a1cf8c734 (diff) | |
Fix iwd-wifi idempotence testing
Co-Authored-By: Claude.ai
Diffstat (limited to 'roles/network/tasks')
| -rw-r--r-- | roles/network/tasks/main.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/roles/network/tasks/main.yml b/roles/network/tasks/main.yml index 7832c364..d0cadaa3 100644 --- a/roles/network/tasks/main.yml +++ b/roles/network/tasks/main.yml @@ -113,10 +113,10 @@ when: network_wifi_ssid != "" - name: "Configure iwd known network for wifi auto-connect" - ansible.builtin.template: - src: "iwd-wifi.psk.j2" - dest: "/var/lib/iwd/={{ network_wifi_hex_ssid.stdout }}.psk" + community.general.ini_file: + path: "/var/lib/iwd/={{ network_wifi_hex_ssid.stdout }}.psk" + section: "Security" + option: "Passphrase" + value: "{{ network_wifi_pass }}" mode: "0600" - owner: "root" - group: "root" when: network_wifi_ssid != "" |
