The example below is for RHEL/CentOS 8
sudo dnf -y install python3-pip
sudo pip3 install --upgrade pip
pip3 install ansible --user
git clone https://github.com/Sapphire-Health/ansible-vmware-build.git
cd ansible_vmware_build
ansible-galaxy collection install -r collections/requirements.yml
yum install python3-pyvmomi
In Ansible Tower these values are configured using a "VMware vCenter" credential resource.
export VMWARE_HOST=vcenterhostname.fqdn.com
export VMWARE_USER=domain\\username
export VMWARE_PASSWORD=password
vi hosts.yml
ansible-playbook -i hosts.yml site.yml