Skip to content

Commit

Permalink
VMware: Add example for creating VM without disks (ansible#66057)
Browse files Browse the repository at this point in the history
Fixes: ansible#39743

Signed-off-by: Abhijeet Kasurde <[email protected]>
  • Loading branch information
Akasurde authored Dec 24, 2019
1 parent 94e0547 commit 05e2e18
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/ansible/modules/cloud/vmware/vmware_guest.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,24 @@
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'''
Expand Down

0 comments on commit 05e2e18

Please sign in to comment.