-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inventory Plugin Returns Host Variables in Unexpected Structure #712
Comments
Files identified in the description: If these files are inaccurate, please update the |
@jamesmarshall24 Thanks for reporting this issue. If I understand this correctly, you want to have dictionaries inside the hostvars. For this feature, there is a configurable parameter called
Let me know if this satisfies your requirement. needs_info |
Thanks @Akasurde I over looked that configuration. If with that added to the yml spec, I get both. Is this expected?
The issue I'm mainly seeing are these in-line variables being written to Tower host variables. After adding that param to the yml spec, I at least don't see any undefined errors in Tower. |
@jamesmarshall24 Yes, this is expected behavior (to have in-line variables with nested variables when |
Since |
For AWX/Tower, setting the default value for `with_nested_properties` as True Fixes: ansible-collections#712 Signed-off-by: Abhijeet Kasurde <[email protected]>
resolved_by_pr #815 |
SUMMARY
Host variables returned by vmware_vm_inventory display complex variables in single line format rather than formatted correctly in a dict/list
ISSUE TYPE
COMPONENT NAME
community.vmware.vmware_vm_inventory
ANSIBLE VERSION
STEPS TO REPRODUCE
ansible-galaxy collection install community.vmware
EXPECTED RESULTS
Variables within
config
are correctly aligned in the dictionaryACTUAL RESULTS
No "config" dictionary found at all in host vars. Referencing
config.uuid
in a playbook using this plugin results in variable not found.The text was updated successfully, but these errors were encountered: