HI 

I have a Ansible play book below is the one ,when I execute the script its 
not allowing as cluster name is not mentioned in the playbook,
is it mandatory that cluster is required ? to ignore what can I do ?


- hosts: 127.0.0.1
  gather_facts: false
  connection: local
  user: remote
  sudo: true
  tasks:
  - vsphere_guest:
        vcenter_hostname: testvc
        username: admin
        password: pass
        guest: newvm1
        from_template: yes
        template_src: Template-xp
        resource_pool: "/Testing-vms"
                vm_disk:
          disk1:
            size_gb: "{{ 10 }}"
            type: thin
            datastore:  Storage1 (11)
        vm_nic:
          nic1:
            type: vmxnet3
            network: VM Network
            network_type: standard
        vm_hardware:
          memory_mb: 2048
          num_cpus: 2
          osid: centos64Guest
          scsi: paravirtual
        esxi:
          datacenter: test
          hostname: test

-- 
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/81e3fc6b-5f6f-4d9c-ba9c-ba361e20a6a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to