Hi Guys,
For the most part I have got anisble almost working to talk to my Esxi host. I have created my playbook to use the module "vmware_get_facts" but when I run my "ansible-playbook vmware.yml" file I get the error
"FAILED! => {"changed": false, "failed": true, "msg": "pyvmomi is required for this module"}
[WARNING]: Could not create retry file '/etc/ansible/playbooks/vmware.retry'. [Errno 13] Permission denied: u'/etc/ansible/playbooks/vmware.retry'"
My python version is 2.7 and I have installed the PyVmomi module using pip install pyvmomi and then pip install --upgrade pyvmomi, however i still get the error which says the module isnt installed? (wierd).
I have gotten past all the authentication errors but sadly stuck on this...
Any ideas?!
-A
echo ~/.ansible/tmp/ansible-tmp-1490120215.48-188286845186507" && echo ansible-tmp-1490120215.48-188286845186507="echo ~/.ansible/tmp/ansible-tmp-1490120215.48-188286845186507" ) && sleep 0'"'"''==================
[ansible@ansible ansible]$ sudo ansible-playbook playbooks/vmware.yml
PLAY [sae3201] **************************************************************
TASK [setup] *******************************************************************
ok: [sae3201]
TASK [Gather Vmware Facts] *****************************************************
ok: [sae3201 -> localhost]
PLAY RECAP *********************************************************************
sae3201 : ok=2 changed=0 unreachable=0 failed=0