Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. ---
  2. - name: Create a VM in OA resource pool
  3. hosts: localhost
  4. connection: local
  5. gather_facts: False
  6. tasks:
  7. - name: create VM
  8. vsphere_guest:
  9. vcenter_hostname: virtualcenter.example.com
  10. validate_certs: no
  11. username: '{{ user }}'
  12. password: '{{ password }}'
  13. guest: '{{ guest }}'
  14. state: powered_off
  15. vm_extra_config:
  16. vcpu.hotadd: yes
  17. mem.hotadd: yes
  18. notes: This is a test VM
  19. vm_disk:
  20. disk1:
  21. size_gb: 10
  22. type: thick
  23. datastore: datastore
  24. vm_nic:
  25. nic1:
  26. type: vmxnet3
  27. network: vlan1
  28. network_type: standard
  29. vm_hardware:
  30. memory_mb: 1024
  31. num_cpus: 1
  32. osid: centos64Guest
  33. scsi: paravirtual
  34. resource_pool: "/Resources/my_resource_pool"
  35. esxi:
  36. datacenter: site01
  37. hostname: esx1.example.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement