Hi David

It's a good pratice that you are able to identify uniqueness of the virtual 
machine and folder will help you to achieve that.

You already have an answer before that might help you out to achieve what 
you're requesting (no folders).
Nevertheless check here https://github.com/js-max/ansible-vmware-new-vm, 
might help you to speed up things if need to.


Cheers

On Monday, 17 February 2020 15:48:30 UTC, David Foley wrote:
>
> Ansible playbook fails to deploy Virtual Machine: Can't Find Folder 
> How can I deploy a Virtual machine without any Folders within the Cluster 
> ? 
>
> ---
>     - name: Running Create Virtual Machine Playbook
>       hosts: localhost
>       gather_facts: false
>       connection: local
>       tasks:
>         - name: Virtual Machine customization
>           vmware_guest:
>             validate_certs: no
>             folder:  "{{ }}"
>             hostname: "{{ }}"
>             username:  "{{ }}"
>             password:  "{{ }}"
>             cluster :  "{{ }}"
>             customization_spec:  "{{ }}"
>             name:  "{{ }}"
>             template: "{{ }}"
>             state: poweredon
>             disk:
>               - datastore:  "{{ }}"
>             networks:
>             - name:  "{{ }}"
>               device_type: e1000e
>             customization:
>               autologon: yes
>             hardware:
>               memory_mb: 2048
>               num_cpus: 1
>           delegate_to: localhost
>            # wait_for_ip_address: True
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2682812c-8955-497b-bd09-e72ecdbec200%40googlegroups.com.

Reply via email to