# Ansible and Vsphere

**URL:** <https://forum.ansible.com/t/ansible-and-vsphere/23750>\
**Category:** Ansible Project\
**Created:** [February 16, 2017, 10:03pm UTC](https://forum.ansible.com/t/ansible-and-vsphere/23750 "2017-02-16T22:03:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Williams1](https://avatars.discourse-cdn.com/v4/letter/r/bc8723/32.png) [@Robert\_Williams1](https://forum.ansible.com/u/Robert_Williams1)\
**Post date:** [February 16, 2017, 10:03pm UTC](https://forum.ansible.com/t/ansible-and-vsphere/23750/1 "2017-02-16T22:03:19Z")

</div>

All , i have searched many sites but i am able to get this playbook to work. I am trying to build a vm via ansible and i get the following error message below. I have also posted my playbook. Any help would be greatly appreciated.

Thanks in advance,

_ **PLAYBOOK** _\_

---

<div class="post-metadata">

**Author:** ![Nehal\_J\_Wani](https://avatars.discourse-cdn.com/v4/letter/n/a9a28c/32.png) [@Nehal\_J\_Wani](https://forum.ansible.com/u/Nehal_J_Wani)\
**Post date:** [February 17, 2017, 7:36am UTC](https://forum.ansible.com/t/ansible-and-vsphere/23750/2 "2017-02-17T07:36:01Z")

</div>

Seems like there is an indentation problem. Try:

vm\_disk:  
disk1:  
size\_gb: 1  
type: thin  
datastore: Comoy-SAN  
vm\_nic:  
nic1:  
type: vmxnet3  
network: Example\_Application\_10.10.10.0\_24\_VLAN10  
network\_type: standard
