Was messing around with the ansible libvirt collection to deploy some molecule instances. Turns out the virt_install module forgot to add the #cloud-config header to user-data when converting it from dictionary to string. Therefor my cloudinit user never got created. Currently preparing a pull request but I am stuck a bit on the test setup.

#ansible #molecule #python #libvirt #automation #cloudinit

fix: add cloud-config header when converting cloudinit user-data by chronicc · Pull Request #254 · ansible-collections/community.libvirt

SUMMARY When providing the cloudinit user-data as dictionary, the conversion to string does not include the #cloud-config header. Hence it is invalid and never executed. When specifying the user-d...

GitHub