Hi

I've configured the below playbook which works fine, except for one 
thing....nothing is happening under the vm_extra_config section?

Is there something that I have done wrong or is this a bug?

---
 - hosts: 127.0.0.1
   connection: local
   user: root
   sudo: false
   gather_facts: false
   serial: 1
   vars:
     vcenter_hostname: xxx.xxx.xxx
     esxhost: xxx.xxx.xxx.xxx
     datastore: UK-xxxx
     network: Web Servers
     vmtemplate: WIN2K12R2-TEMPLATE
     vmcluster: UK-CLUSTER
     username: xxxxxxxxx
     password: xxxxxxxx
     folder: Labs
     notes: Created by Ansible

   tasks:
    - name: Create VM from template
      vsphere_guest:
        vcenter_hostname: "{{ vcenter_hostname }}"
        username: "{{ username }}"
        password: "{{ password }}"
        guest: "UK-ANSIBLE-TEST0{{ name }}"
        from_template: yes
        template_src: "{{ vmtemplate }}"
        cluster: "{{ vmcluster  }}"
        resource_pool: "/Resources"
        vm_extra_config:
          notes: "{{ notes }}"
          folder: "{{ folder }}"
        esxi:
          datacenter: UK
          hostname: "{{ esxhost }}"

-- 
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/8cd90403-9ad7-4960-8c31-1bbca924ec87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to