Guest User

ansible vsphere example

a guest
Feb 18th, 2015
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. ---
  2. # file: provision_vsphere
  3. - hosts: localhost
  4. connection: local
  5. gather_facts: False
  6.  
  7. tasks:
  8.  
  9. - name: Deploy VM from template
  10. vsphere_guest:
  11. vcenter_hostname: 10.x.x.x
  12. username: user
  13. password: pass
  14. guest: dev_Ansible_win2012
  15. from_template: yes
  16. template_src: win2012-template_4
  17. cluster: cluster
  18. resource_pool: resource_pool
Advertisement
Add Comment
Please, Sign In to add comment