Hi,
How can i use esxcli command in ansible playbook to automate things ?
Regards
I am not an expert in Ansible but If you need to do something on VMware you should use one of VMware modules:
All modules — Ansible Documentation
Example how to use Ansible and Vmware:
https://graspingtech.com/ansible-deploy-vmware-vm/