Ansible playbook for creating a Cloud-init enabled VM Template for ProxmoxVE. Currently supports Ubuntu 22.04 cloud-img, but plans to expand to other supported OSes in the future.
sudo apt install sshpass ansible -y
Create a configuration file referring to example.hosts.yaml
ansible-playbook -i example.hosts.yaml templates/ubuntu22.04-template-v1.0.0/main.yaml
https://homelabing.fr/how-to-automate-proxmox-ve-using-ansible/