Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Ansible Tower vmware inventory not respecting source variables

    Posted on

    Hello All,

    Tower (trial): 3.8.0
    Ansible: 2.9.15

    I'm having issues with vmware inventory not respecting source variables, I've been trying to get it working correctly for 3 days now. According to this doc https://docs.ansible.com/ansible-tower/3.3.4/html/userguide/inventories.html#vmware-vcenter
    the source variables will overwrite the defaults. I dont like the default behavior of syncing all vms and grouping by guestId. When adding a host filter and group by variable in my vmware source "source variables" it doesnt do anything and continues on with the default settings. I also came across this solution https://access.redhat.com/solutions/5190981 which didnt help either after testing. A couple other things i have tried is, edit the vmware_inventory.ini file on the ansible box. Create my own vmware_inventory.yml file, both of which failed.

    Im trying to simply understand how to filter the vmware sync, specifically only capture linux VMs, i also want to check for a specific vm tag if possible. Oh and also setting the alias pattern as well.

    Sadly all the documentation is either vague or incomplete. Any help is appreciated. Thanks in advance.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat