vmware_drs_group: creates test vm properly

Creates the test VMs with `prepare_vmware_test`. Before this commit,
only one VM was created and the next step was failing because this was
not matching the expected list of VMs.
This commit is contained in:
Gonéri Le Bouder 2019-08-13 15:19:45 +02:00
parent 8b78ba095c
commit 218f4276d5

View file

@ -7,31 +7,7 @@
vars: vars:
setup_attach_host: true setup_attach_host: true
setup_datastore: true setup_datastore: true
setup_virtualmachines: true
- name: Create VMs
vmware_guest:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: "{{ dc1 }}"
validate_certs: no
folder: '{{ f0 }}'
name: test_vm1
state: poweredoff
guest_id: debian8_64Guest
disk:
- size_gb: 1
type: thin
datastore: '{{ ds2 }}'
hardware:
memory_mb: 128
num_cpus: 1
scsi: paravirtual
cdrom:
type: iso
iso_path: "[{{ ds1 }}] fedora.iso"
networks:
- name: VM Network
- name: Create DRS VM group - name: Create DRS VM group
vmware_drs_group: vmware_drs_group: