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