Ansible
Cheat sheet · https://pcornel.dk/topic.php?topic=3690
Answer
Ansible automates virtualization with agentless playbooks and modules such as community.vmware, community.libvirt and community.general.proxmox to create VMs, change hardware and configure the guest OS in one idempotent run.
Remember
- Module ok ≠ guest configured; that is a second play.
- Collections and SDKs must match the platform version.
- Check mode shows intent, not guest effects.
First checks
ansible-galaxy collection list | grep -E 'community.general|community.vmware|community.libvirt'— collections installedansible-playbook vm.yml --check— dry runansible-inventory --graph— dynamic inventory
Verify in this order
playbook → module → API → VM
Where it usually breaks
First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3690