Provision cloud images in Proxmox environment
Ansible role to provision a linux cloud image in a Proxmox environment.
Default cloud image is debian-buster. You can change it in cli with ex.: -e default_vm_name=ubuntu-bionic.
Currently supported cloud images:
- Debian Buster (debian-buster)
- Ubuntu Bionic (ubuntu-bionic)
- Arch Linux (archlinux)
- feel free to extend, see pve_vm_create_vm_images variable in main.yml
The role creates a custom user cloud-config, downloads the default cloud image, creates a default VM in Proxmox, imports the cloud image, attaches as a disk, updates boot options, resizes VM disk, then cleans up.
ansible-playbook --ask-vault-pass playbook.yml
Repository: csepely/pve-cloud-vm