Skip to content

Instantly share code, notes, and snippets.

@kleppy
Created June 16, 2015 01:23
Show Gist options
  • Select an option

  • Save kleppy/16e8b89b1186e2e391bd to your computer and use it in GitHub Desktop.

Select an option

Save kleppy/16e8b89b1186e2e391bd to your computer and use it in GitHub Desktop.
---
- hosts: localhost
user: ubuntu
gather_facts: no
tasks:
- name: local call
local_action: vsphere_guest
vcenter_hostname=yourcenter.qualifiedhostname
username="authorizedvcenteruser"
password="password"
guest={{ item }}
from_template=yes
template_src=ubuntu-templatename
cluster=Vmwareclusteryouwanttodeployon
resource_pool="/Resources"
with_items:
- "testguest"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment