Note
This plugin is part of the community.general collection (version 2.0.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
.proxmox.yml
or .proxmox.yaml
The below requirements are needed on the local controller node that executes this inventory.
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
cache boolean |
| ini entries: [inventory] env:ANSIBLE_INVENTORY_CACHE | Toggle to enable/disable the caching of the inventory's source data, requires a cache plugin setup to work. |
cache_connection string | ini entries: [defaults] [inventory] env:ANSIBLE_CACHE_PLUGIN_CONNECTION env:ANSIBLE_INVENTORY_CACHE_CONNECTION | Cache connection data or path, read cache plugin documentation for specifics. | |
cache_plugin string | Default: "memory" | ini entries: [defaults] [inventory] env:ANSIBLE_CACHE_PLUGIN env:ANSIBLE_INVENTORY_CACHE_PLUGIN | Cache plugin to use for the inventory's source data. |
cache_prefix string | Default: "ansible_inventory_" | ini entries: [default] [inventory] env:ANSIBLE_CACHE_PLUGIN_PREFIX env:ANSIBLE_INVENTORY_CACHE_PLUGIN_PREFIX | Prefix to use for cache plugin files/tables |
cache_timeout integer | Default: 3600 | ini entries: [defaults] [inventory] env:ANSIBLE_CACHE_PLUGIN_TIMEOUT env:ANSIBLE_INVENTORY_CACHE_TIMEOUT | Cache duration in seconds |
facts_prefix string | Default: "proxmox_" | Prefix to apply to LXC/QEMU config facts. | |
group_prefix string | Default: "proxmox_" | Prefix to apply to Proxmox groups. | |
password string / required | env:PROXMOX_PASSWORD added in 2.0.0 of community.general | Proxmox authentication password. If the value is not specified in the inventory configuration, the value of environment variable PROXMOX_PASSWORD will be used instead. | |
plugin string / required |
| The name of this plugin, it should always be set to community.general.proxmox for this plugin to recognize it as it's own. | |
url string | Default: "http://localhost:8006" | env:PROXMOX_URL added in 2.0.0 of community.general | URL to Proxmox cluster. If the value is not specified in the inventory configuration, the value of environment variable PROXMOX_URL will be used instead. |
user string / required | env:PROXMOX_USER added in 2.0.0 of community.general | Proxmox authentication user. If the value is not specified in the inventory configuration, the value of environment variable PROXMOX_USER will be used instead. | |
validate_certs boolean |
| Verify SSL certificate if using HTTPS. | |
want_facts boolean |
| Gather LXC/QEMU configuration facts. |
# my.proxmox.yml plugin: community.general.proxmox url: http://localhost:8006 user: ansible@pve password: secure validate_certs: no
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.11/collections/community/general/proxmox_inventory.html