On Fri, 13 Feb 2015 01:50 -0800, [email protected] wrote:
> Hi,
> 
> Below is yml am using,
> 
> ---
> - hosts: 127.0.0.1
>   connection: local
>   user: osboxes
>   sudo: false
>   gather_facts: false
>   serial: 1
> 
>   tasks:
>   - vsphere_guest:
>       vcenter_hostname: xxx
>       username: xxxxxx
>       password: xxxxx
>       guest: testansible
>       state: powered_on
>       vm_disk:
>         disk1:
>         size_gb: 1
>         type: thin
>         datastore: compute

I think you need to fix the indentation:

       vm_disk:
         disk1:
          size_gb: 1
          type: thin
          datastore: compute


http://yaml.org/spec/current.html#id2519916

Giovanni

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1423822295.4016954.227041577.4168989F%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to