Advertisement
Guest User

Untitled

a guest
May 12th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. # Create a new VM on an ESX server
  2.  
  3. ---
  4. - hosts: 127.0.0.1
  5. connection: local
  6.  
  7. tasks:
  8. - vsphere_guest:
  9. vcenter_hostname: 192.168.1.18
  10. username: administrator@vsphere.local
  11. password: password
  12. guest: SVR2K8-Update
  13. state: powered_on
  14. vm_disk:
  15. disk1:
  16. size_gb: 60
  17. type: thin
  18. datastore: SSD-03
  19. vm_nic:
  20. nic1:
  21. type: vmxnet3
  22. network: VM Network
  23. network_type: standard
  24. vm_hardware:
  25. memory_mb: 4068
  26. num_cpus: 2
  27. osid: windows7Server64Guest
  28. scsi: paravirtual
  29. vm_cdrom:
  30. type: "iso"
  31. iso_path: "[SSD-01] ISO/Server 2008 R2.iso"
  32. esxi:
  33. datacenter: Datacenter
  34. hostname: host-01.v-blog.local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement