community.vmware.vmware_host_inventory – VMware ESXi hostsystem inventory source
This plugin is part of the community.vmware collection (version 1.17.0).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install community.vmware.
To use it in a playbook, specify:
New in version 1.11.0: of community.vmware
Get VMware ESXi hostsystem as inventory hosts from VMware environment.
Uses any file which ends with vmware.yml, vmware.yaml, vmware_host_inventory.yml, or vmware_host_inventory.yaml as a YAML configuration file.
The below requirements are needed on the local controller node that executes this inventory.
Python >= 2.7
requests >= 2.3
vSphere Automation SDK - For tag feature
# Sample configuration file for VMware Host dynamic inventory plugin: community.vmware.vmware_host_inventory strict: False hostname: 10.65.223.31 username: [email protected] password: [email protected]$% validate_certs: False with_tags: True # Using compose plugin: community.vmware.vmware_host_inventory hostname: 10.65.223.31 username: [email protected] password: [email protected]$% validate_certs: False properties: - name - summary - config.lockdownMode compose: ansible_user: "'root'" ansible_connection: "'ssh'"