Using VMware dynamic inventory plugin
To be able to use this VMware dynamic inventory plugin, you need to enable it first by specifying the following in the file:
The script takes in the same authentication information as any VMware module.
- plugin: vmware_vm_inventory
- strict: False
- hostname: 10.65.223.31
- password: $%
- validate_certs: False
- with_tags: True
Executing will create a list of VMware instances that are ready to be configured using Ansible.
- pyVmomi
- The issue tracker for the pyVmomi project
- Working With Playbooks
- An introduction to playbooks