ansible-proxmox-inv/inventory/01-fetch.proxmox.yml

17 lines
432 B
YAML

plugin: community.general.proxmox
url: https://proxmox.example.org:8006
validate_certs: false
user: test@pve
password: ...
want_facts: true
facts_prefix: proxmox__
group_prefix: proxmox__
want_proxmox_nodes_ansible_host: false
compose:
# Raw data read from the "```ansible"-delimitated part of the description
inv__data: >-
( ( proxmox__description | split( '```ansible' ) )[1]
| split( '```' ) )[0]
| from_json