2019-04-24 13:02:21 -04:00
|
|
|
---
|
2019-05-16 09:36:48 -04:00
|
|
|
- name: Create VMs
|
|
|
|
vmware_guest:
|
|
|
|
datacenter: "{{ dc1 }}"
|
|
|
|
folder: '{{ item.folder }}'
|
|
|
|
name: '{{ item.name }}'
|
2019-07-11 08:12:49 +02:00
|
|
|
state: poweredoff
|
2019-05-16 09:36:48 -04:00
|
|
|
guest_id: debian8_64Guest
|
|
|
|
disk:
|
|
|
|
- size_gb: 1
|
|
|
|
type: thin
|
|
|
|
datastore: '{{ ds2 }}'
|
|
|
|
hardware:
|
|
|
|
memory_mb: 128
|
|
|
|
num_cpus: 1
|
|
|
|
scsi: paravirtual
|
|
|
|
cdrom:
|
|
|
|
type: iso
|
2019-06-07 18:34:20 -04:00
|
|
|
iso_path: "[{{ ds1 }}] fedora.iso"
|
2019-05-16 09:36:48 -04:00
|
|
|
networks:
|
|
|
|
- name: VM Network
|
|
|
|
with_items: '{{ virtual_machines }}'
|
2019-04-24 13:02:21 -04:00
|
|
|
|
2019-05-16 09:36:48 -04:00
|
|
|
|
|
|
|
- name: Create VMs in cluster
|
2019-04-24 13:02:21 -04:00
|
|
|
vmware_guest:
|
|
|
|
datacenter: "{{ dc1 }}"
|
2019-05-16 09:36:48 -04:00
|
|
|
folder: '{{ item.folder }}'
|
|
|
|
cluster: '{{ item.cluster }}'
|
|
|
|
name: '{{ item.name }}'
|
2019-07-11 08:12:49 +02:00
|
|
|
state: poweredoff
|
2019-04-24 13:02:21 -04:00
|
|
|
guest_id: debian8_64Guest
|
|
|
|
disk:
|
|
|
|
- size_gb: 1
|
|
|
|
type: thin
|
|
|
|
datastore: '{{ ds2 }}'
|
|
|
|
hardware:
|
|
|
|
memory_mb: 128
|
|
|
|
num_cpus: 1
|
|
|
|
scsi: paravirtual
|
|
|
|
cdrom:
|
|
|
|
type: iso
|
2019-06-07 18:34:20 -04:00
|
|
|
iso_path: "[{{ ds1 }}] fedora.iso"
|
2019-04-24 13:02:21 -04:00
|
|
|
networks:
|
|
|
|
- name: VM Network
|
2019-05-16 09:36:48 -04:00
|
|
|
with_items: '{{ virtual_machines_in_cluster }}'
|