Re: [ansible-project] How to use with_items loop with vmware_guest module

2017-01-31 Thread Stankovic, Marko
Now I realized that you probably wanted to use with_dict instead of with_items. In that case, you would need the "value" part: http://docs.ansible.com/ansible/playbooks_loops.html#looping-over-hashes Cheers, Marko

Re: [ansible-project] How to use with_items loop with vmware_guest module

2017-01-31 Thread Stankovic, Marko
Hi Matti, You've created a dictionary instead of a list. Check this document: http://docs.ansible.com/ansible/YAMLSyntax.html The proper use of "with_items" needs a list like this: vmware_guest_disks: - size_gb: 20 datastore: datastore1 - size_gb: 1 datastore: datastore1 -