VMware: Add example for creating VM without disks (#66057)

Fixes: #39743

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-12-24 22:40:02 +05:30 committed by GitHub
parent 94e054755f
commit 05e2e18061
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -620,6 +620,24 @@ EXAMPLES = r'''
num_cpus: 2
scsi: paravirtual
delegate_to: localhost
- name: Create a diskless VM
vmware_guest:
validate_certs: False
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: "{{ dc1 }}"
state: poweredoff
cluster: "{{ ccr1 }}"
name: diskless_vm
folder: /Asia-Datacenter1/vm
guest_id: centos64Guest
datastore: "{{ ds1 }}"
hardware:
memory_mb: 1024
num_cpus: 2
num_cpu_cores_per_socket: 1
'''
RETURN = r'''