# Failed when using vmware\_guest

**URL:** <https://forum.ansible.com/t/failed-when-using-vmware-guest/23802>\
**Category:** Ansible Project\
**Created:** [February 23, 2017, 4:19am UTC](https://forum.ansible.com/t/failed-when-using-vmware-guest/23802 "2017-02-23T04:19:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rico\_John](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@Rico\_John](https://forum.ansible.com/u/Rico_John)\
**Post date:** [February 23, 2017, 4:19am UTC](https://forum.ansible.com/t/failed-when-using-vmware-guest/23802/1 "2017-02-23T04:19:35Z")

</div>

Hi,

I have tried using ansible for vcenter management. I have follow the tutorial, however it doesn’t work. Please take a look at below :

root@ansible02:/etc/ansible# ansible-playbook test.yml -C

PLAY [vcenter] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [setup] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [vcenter]

TASK [create the VM] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [vcenter]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “pyvmomi module required”}  
to retry, use: --limit @/etc/ansible/test.retry

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
vcenter : ok=1 changed=0 unreachable=0 failed=1

Here is my test.yml
