Closed Gevorg-Khachatryan-97 closed 4 weeks ago
Usecase: Can create custom groups based on category and vm name (expressions) using constructed inventory feature : #235
As v1.7 is approaching, moving this out of it and will consider it in next release
https://github.com/nutanix/nutanix.ansible/pull/405 This will add categories mapping in inventory
This issue is resolved and closed. The fix has been merged via the PR linked in this issue. VM names and categories are now handled correctly, and groups can be created as expected. Thank you for reporting!
Make changes in
ntnx_prism_vm_inventory.py
to include vm name and categories mapping from"metadata"
in vm information and set variable to have ability use those values to create groups.https://github.com/nutanix/nutanix.ansible/blob/b82b58d0a767e821f64107c2f363cebfaa892822/plugins/inventory/ntnx_prism_vm_inventory.py#L174