diff --git a/ansible.cfg b/ansible.cfg index ae5541f..566294d 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -12,4 +12,4 @@ use_persistent_connections = true usetty = false [inventory] -enable_plugins = community.general.proxmox, yaml +enable_plugins = constructed, community.general.proxmox, yaml diff --git a/inventory/02-copy-metadata.yml b/inventory/02-copy-metadata.yml new file mode 100644 index 0000000..fa7ecb7 --- /dev/null +++ b/inventory/02-copy-metadata.yml @@ -0,0 +1,10 @@ +# Copy some metadata from the inv__data structure if it exists. +plugin: constructed +strict: false + +compose: + inv__component: inv__data.component + inv__fostack: inv__data.fostack + inv__instance: inv__data.instance + inv__service: inv__data.service + inv__subcomponent: inv__data.subcomponent