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
      vm_nic:
        nic1:
        type: vmxnet3
        network: vm
        network_type: standard
      vm_hardware:
        memory_mb: 1024
        num_cpus: 1
        osid: centos64Guest
        scsi: paravirtual
      esxi:
        datacenter: xxx
    hostname: xxxxx

Thanks,


On Friday, February 13, 2015 at 6:56:15 AM UTC+5:30, Giovanni Tirloni wrote:
>
> On Thu, 12 Feb 2015 03:56 -0800, [email protected] <javascript:> wrote: 
> > I am getting below error while using Ansible (version 1.8.2) 
> > vSphere_guest 
> > module, 
> > 
> > osboxes@osboxes:~$ ansible-playbook /etc/ansible/playbooks/main.yml -K 
> > sudo password: 
> > 
> > PLAY [localhost] 
> > ************************************************************** 
> > 
> > TASK: [vsphere_guest ] 
> > ******************************************************** 
> > failed: [localhost] => {"failed": true, "parsed": false} 
> > SUDO-SUCCESS-ldmjglnajxpocoybboumisekhbbnmhnp 
> > Traceback (most recent call last): 
> >   File 
> > 
> "/home/osboxes/.ansible/tmp/ansible-tmp-1423728228.54-220175308723408/vsphere_guest",
>  
>
> > line 2791, in <module> 
> >     main() 
> >   File 
> > 
> "/home/osboxes/.ansible/tmp/ansible-tmp-1423728228.54-220175308723408/vsphere_guest",
>  
>
> > line 1197, in main 
> >     config_check("vm_disk", vm_disk, proto_vm_disk, module) 
> >   File 
> > 
> "/home/osboxes/.ansible/tmp/ansible-tmp-1423728228.54-220175308723408/vsphere_guest",
>  
>
> > line 1012, in config_check 
> >     if diff.recursive_diff(): 
> >   File 
> > 
> "/home/osboxes/.ansible/tmp/ansible-tmp-1423728228.54-220175308723408/vsphere_guest",
>  
>
> > line 983, in recursive_diff 
> >     if k in self.check_dict[key]: 
> > TypeError: argument of type 'NoneType' is not iterable 
>
> Please share the task definition (without confidential data). 
>
> 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/da704ead-2ed9-4f2d-87d8-c9a7e3e6c693%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to