Skip to content

Allow filtering of hostvars to not always include ALL properties/tags #193

@bartowl

Description

@bartowl
SUMMARY

Currently in order to create group based on tags or customValue I have to gather_tags: true or add customValue to properties.
This results in many extra variables added as hsotvars that are actually not needed. For few host inventories this is at most a cosmetic issue. But when your inventory goes to a range ov thousands of hosts, every extra hostvar results in significant time increase for each job running over entire directory. And properties and tags add A LOT of those hostvars, that are not otherwise even used.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

vms inventory plugin

ADDITIONAL INFORMATION

It would be great to include a way to filter what properties gets into hostvars. I tried using compose to cut those variables to zero length, but it shows up that compose is applied BEFORE keyed_groups and this breaks creating groups based on tags by custom rules.

Also - as community.vmware.vmware_vm_inventory is deprecated and this is the recommended successor you should at least clearly point out all differences, like the one that filters use inverse logic compared to previous implementation...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions