Extract JSON from the Proxmox description
This commit is contained in:
parent
5e64ac8146
commit
03cc946c65
1 changed files with 7 additions and 0 deletions
|
@ -8,3 +8,10 @@ want_facts: true
|
||||||
facts_prefix: proxmox__
|
facts_prefix: proxmox__
|
||||||
group_prefix: proxmox__
|
group_prefix: proxmox__
|
||||||
want_proxmox_nodes_ansible_host: false
|
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
|
||||||
|
|
Loading…
Reference in a new issue