Extract JSON from the Proxmox description

This commit is contained in:
Emmanuel BENOîT 2022-08-07 22:33:42 +02:00
parent 5e64ac8146
commit 03cc946c65

View file

@ -8,3 +8,10 @@ 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