deploy xen on vsphere ansible

[root@localhost ~]# cat vpshere.yml
---

- hosts: localhost

  gather_facts: false

  connection: local

  tasks:

   - vsphere_guest:
       vcenter_hostname: 192.168.0.109
       username: root
       password: vmware
       validate_certs: no
       guest: ovm
       state: powered_on
       vm_extra_config:
         vcpu.hotadd: yes
         mem.hotadd:  yes
         notes: This is a test VM
       vm_disk:
         disk1:
           size_gb: 20
           type: thin
           datastore: datastore1
           folder: /ha-datacenter/vm
       vm_nic:
         nic1:
           type: vmxnet3
           network: VM Network
           network_type: standard

       vm_hardware:
         memory_mb: 2048
         num_cpus: 2
         osid: rhel7_64Guest
         scsi: paravirtual
         vm_cdrom:
           type: "iso"
           iso_path: "datastore1/XenServer-7.0.0-main.iso"

       esxi:
         datacenter: ha-datacenter
         hostname: 192.168.0.108
https://docs.google.com/document/d/e/2PACX-1vQ8qAl3U2q3561j6gaEeBG-He9w7gWO8LdlMKyq4YJN6ZcInNqZdKFU4XxwR2xC71rtubPO4YeqbvyK/pub


Comments