[ansible-project] Re: Ansible Create vSphere Virtual Machine

2020-02-17 Thread David Foley

>
> When i Enter the virtualMachine Name _ Folder I'm getting the following 
>

 No Folder /TESTMACHINE match in search path.. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/475056ee-60ad-4a4f-ab88-6bb6cf0b4d27%40googlegroups.com.


[ansible-project] Re: Ansible Create vSphere Virtual Machine

2020-02-17 Thread João Santos
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2682812c-8955-497b-bd09-e72ecdbec200%40googlegroups.com.