community.general.proxmox – Proxmox inventory source¶
Note
This plugin is part of the community.general collection (version 2.5.1).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.proxmox
.
New in version 1.2.0: of community.general
Synopsis¶
Get inventory hosts from a Proxmox PVE cluster.
Uses a configuration file as an inventory source, it must end in
.proxmox.yml
or.proxmox.yaml
Will retrieve the first network interface with an IP for Proxmox nodes.
Can retrieve LXC/QEMU configuration as facts.
Requirements¶
The below requirements are needed on the local controller node that executes this inventory.
requests >= 1.1
Parameters¶
Examples¶
# my.proxmox.yml
plugin: community.general.proxmox
url: http://localhost:8006
user: ansible@pve
password: secure
validate_certs: no
keyed_groups:
- key: proxmox_tags_parsed
separator: ""
prefix: group
groups:
webservers: "'web' in (proxmox_tags_parsed|list)"
mailservers: "'mail' in (proxmox_tags_parsed|list)"
compose:
ansible_port: 2222
Authors¶
Jeffrey van Pelt (@Thulium-Drake) <jeff@vanpelt.one>