Hi Community
I need some hints on how to setup a wifi connection with ansible. And in my case use a private key to authenticate with.
The task below is what i come up with so far but how do I add a private key and password for the connection?
- name: DEV WiFi
community.general.nmcli:
type: wifi
conn_name: DEV Wifi
ifname: "*"
ssid: dev_wifi
wifi_sec:
psk: my_password
key-mgmt: wpa-eap
proto: wpa
autoconnect: false
state: present
I have attached this image also for clarification for which fields I talk about “User private key” and “User key password” and perhaps also “Identity”
- Please help in how to achieve this.
- is .pki/nssdb involved in this?
ansible-playbook [core 2.15.8]
ubuntu 22.04
BR
/Daniel