Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: Create a VM in OA resource pool
- hosts: localhost
- connection: local
- gather_facts: False
- tasks:
- - name: create VM
- vsphere_guest:
- vcenter_hostname: virtualcenter.example.com
- validate_certs: no
- username: '{{ user }}'
- password: '{{ password }}'
- guest: '{{ guest }}'
- state: powered_off
- vm_extra_config:
- vcpu.hotadd: yes
- mem.hotadd: yes
- notes: This is a test VM
- vm_disk:
- disk1:
- size_gb: 10
- type: thick
- datastore: datastore
- vm_nic:
- nic1:
- type: vmxnet3
- network: vlan1
- network_type: standard
- vm_hardware:
- memory_mb: 1024
- num_cpus: 1
- osid: centos64Guest
- scsi: paravirtual
- resource_pool: "/Resources/my_resource_pool"
- esxi:
- datacenter: site01
- hostname: esx1.example.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement