Try with :
folder: "{{ yourfolder | d ('/') }}"

El lun., 17 feb. 2020 a las 15:48, David Foley (<[email protected]>)
escribió:

> 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/fed0cb7e-644a-4344-a18c-01cf3a87beef%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/fed0cb7e-644a-4344-a18c-01cf3a87beef%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAFtje5PK3pMsO%2BTnUr4t6WYv_Bp4TMWA%3DvwrMpZTccFjD%2BbvtA%40mail.gmail.com.

Reply via email to