Ansible
Update Unifi Wifi Key via Ansible
Just a quick note on our own behalf:
I created an Ansible role for changing the wifi key on Unifi systems.
Basically, what was scripted here with PyExpect is realized via Ansible script, which makes the implementation much easier.
As always, I make the whole thing available for free at:
The source code is available on Github: