VMware: Add example for creating VM without disks (#66057)
Fixes: #39743 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
94e054755f
commit
05e2e18061
1 changed files with 18 additions and 0 deletions
|
@ -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'''
|
||||
|
|
Loading…
Reference in a new issue