how do i create a ansible vmware playbook with following
- join esx host to domain
- setup ntp with - 0.pool.ntp.org, 1.pool.ntp.org
- set advance settings on host : VMkernel.Boot.hyperthreadingMitigation to True
- reboot host
how do i create a ansible vmware playbook with following
Have a look here https://github.com/veksh/ansible-esxi
Hi Tony:
I think you need to look at powercli for ESXi Configuration:
vmware_host_active_directory does not have a parameter called ‘ad_username’ its actually ‘ad_user’
Thanks
I corrected it and now it looks like its trying to ssh into the host as my username which does not exist on the esxi host. How do I impersonate ssh into the host as root?
Use become
, you can read more here - https://docs.ansible.com/ansible/latest/user_guide/become.html