Ansible for Proxmox VE · Module 06
community.proxmox.proxmox inventory pluginThe cluster already knows all of this. Ask it.
inventory/lab.proxmox.yml
The file name must end in .proxmox.yml or .proxmox.yaml. Otherwise the plugin politely ignores it and you debug an empty inventory.
Groups per node, per type, per status, per pool. Generated, never maintained.
With want_facts: true every guest carries its Proxmox configuration:
Tag a guest in Proxmox VE, group on it in Ansible:
The person creating the VM decides its role, in the GUI, with a tag, and your playbooks follow.
Or set both in ansible.cfg:
The nodes stay static, because they have to exist before anything is dynamic. The guests come from the cluster.
Optional block at the end if you get there. → Exercise sheet: Dynamic inventory
credativ · Ansible for Proxmox VE