Ok, end of puzzle; this works fine in Ansible 2.x Jeff
On Thursday, June 9, 2016 at 12:11:53 PM UTC-7, Jeff Richards wrote: > > Yes, already tried that, it just errors saying I also need to specify a > cluster - and there's no dummy resource for that. > > It's exactly what was described (and fixed(?)) here: > > https://github.com/rce/ansible-modules-core/commit/1a8da60253ddeb761110102f2b4421ffdc36c401 > "vsphere_guest now can deploy a template using a datacenter and hostname > as the target, instead of requiring a cluster and resource_pool." > > Jeff > > On Thursday, June 9, 2016 at 2:46:58 AM UTC-7, Ayan Dasgupta wrote: >> >> Can you try adding a dummy resource pool in your code if you don't have >> any in our environment ? >> >> Example :-- >> >> resource_pool: "/Resources" >> >> On Thursday, June 9, 2016 at 6:21:15 AM UTC+5:30, Jeff Richards wrote: >> >>> When trying to deploy a template (Ansible 1.9.6) as follows: >>> >>> - hosts: 127.0.0.1 >>> connection: local >>> user: root >>> sudo: false >>> gather_facts: false >>> serial: 1 >>> >>> tasks: >>> - vsphere_guest: >>> vcenter_hostname: XXXXXXXXX >>> username: XXXXXXXXXX >>> password: 'XXXXXX' >>> guest: testvm >>> from_template: yes >>> template_src: XXXXXXXXXXX >>> esxi: >>> datacenter: XXXXX >>> hostname: XXXXXXx >>> >>> >>> >>> I get the error: >>> msg: parameters are required together: ['from_template', >>> 'resource_pool', 'template_src'] >>> >>> >>> Now this is well documented and was addressed some time back: >>> >>> https://github.com/rce/ansible-modules-core/commit/1a8da60253ddeb761110102f2b4421ffdc36c401 >>> "vsphere_guest now can deploy a template using a datacenter and hostname >>> as the target, instead of requiring a cluster and resource_pool." >>> >>> >>> Any idea why I appear to be seeing a regression here? >>> >>> Jeff >>> >> -- 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/14a1ced0-78f0-4dd5-a15f-7720c7b06fc9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
