Hello, I am new to Ansible and am having trouble spinning up a vm from a 
template using Ansible. I am unsure on what to put for "hosts" in my 
playbook. Should this be the vcenter hostname , vsphere hostname or 
something else? Any help is appreciated. Thanks in advance.


*PlayBook*
---
- hosts: vmcreate
  gather_facts: false
  connection: local
  tasks:
    - vsphere_guest:
       vcenter_hostname: vcloud.example.com
       username: username
       password: password
       guest: test01
       from_template: yes
       template_src: 20.10_LAB
       cluster: ABC - vCloud - Lab
       resource_pool: "/ABC"
       esxi:
         datacenter: 'vCloud - Charleston, SC'
         hostname: vCloud - Lab

*Error Message*
ansible-playbook create_appVCLOUD.yml

 [WARNING]: provided hosts list is empty, only localhost is available

PLAY RECAP 
*********************************************************************

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/46d7cfe9-224d-440f-987c-e06eb26bc576%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to