Move migration from IWD to WPA-supplicant to role

To ensure that migration only runs when EAP-TLS certificate is installed correctly
This commit is contained in:
Finn Hercke 2025-03-24 08:56:01 +01:00
parent f965f4466c
commit 4dafbd8b85
2 changed files with 16 additions and 25 deletions

View file

@ -382,31 +382,6 @@
- /etc/systemd/network/wlan-dhcp.network
- /etc/NetworkManager/system-connections/FVS-devices.nmconnection
- name: Enable wpa-supplicant
ansible.builtin.systemd:
name: wpa_supplicant.service
enabled: true
tags:
- never
- wlan_8021x
- name: Disable iwd
ansible.builtin.systemd:
name: iwd.service
enabled: false
tags:
- never
- wlan_8021x
- name: Remove deprecated NetworkManager config
ansible.builtin.blockinfile:
path: /etc/NetworkManager/NetworkManager.conf
state: absent
tags:
- never
- wlan_8021x
- name: Apply roles that must run serial
hosts: all
remote_user: ansible

View file

@ -94,3 +94,19 @@
802-1x.private-key /etc/ssl/private/{{ wlan_ssid }}.key
802-1x.private-key-password dummy
changed_when: false
# Temporary fix used to migrate from IWD to WPA-Supplicant - Will be removed later
- name: Enable wpa-supplicant
ansible.builtin.systemd:
name: wpa_supplicant.service
enabled: true
- name: Disable iwd
ansible.builtin.systemd:
name: iwd.service
enabled: false
- name: Remove deprecated NetworkManager config
ansible.builtin.blockinfile:
path: /etc/NetworkManager/NetworkManager.conf
state: absent