Skip to content

Instantly share code, notes, and snippets.

@asvignesh
Created June 5, 2019 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asvignesh/a6a0ed35039191ef5b32768013638130 to your computer and use it in GitHub Desktop.
Save asvignesh/a6a0ed35039191ef5b32768013638130 to your computer and use it in GitHub Desktop.
Provision vSphere VM from Template on Ansible
- hosts: localhost
connection: local
tasks:
- name: Clone VM from Template
- vmware_guest:
hostname: vcenter.asvignesh.in
username: administrator@asvignesh.in
password: password
validate_certs: no
name: newvm001
template: Windows2012
folder: /
esxi_hostname: host1.asvignesh.in
datacenter: asvignesh_datacenter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment