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

2020-02-17 Thread David Foley
Ok I'm using just / as the folder seems to be bypassing that now 

but not sure what could be causing the following:: fatal: [localhost -> 
localhost]: FAILED! => {"changed": false, "msg": "Failed to create a 
virtual machine : Unable to access the virtual machine configuration: 
Unable to access file [vsanDatastore] /win10-template.vmtx"}


On Monday, February 17, 2020 at 4:06:39 PM UTC, Dick Visser wrote:
>
> On Mon, 17 Feb 2020 at 16:53, Jorge Rúa > 
> wrote: 
> > 
> > Try with : 
> > folder: "{{ yourfolder | d ('/') }}" 
>
> For everyone else that is wondering what the 'd' filter is, it's an 
> alias for 'default'  :) 
>
>
> -- 
> Dick Visser 
> Trust & Identity Service Operations Manager 
> GÉANT 
>

-- 
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/589fb946-7419-404d-a01d-b39e2eb79fde%40googlegroups.com.


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

2020-02-17 Thread Dick Visser
On Mon, 17 Feb 2020 at 16:53, Jorge Rúa  wrote:
>
> Try with :
> folder: "{{ yourfolder | d ('/') }}"

For everyone else that is wondering what the 'd' filter is, it's an
alias for 'default'  :)


-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
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/CAL8fbwO2AgVMM_fothDzZc_X_L3_vusomFB33Sqr6BRkWW4ARw%40mail.gmail.com.


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

2020-02-17 Thread Jorge Rúa
Try with :
folder: "{{ yourfolder | d ('/') }}"

El lun., 17 feb. 2020 a las 15:48, David Foley ()
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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/fed0cb7e-644a-4344-a18c-01cf3a87beef%40googlegroups.com
> 
> .
>

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


[ansible-project] Ansible Create vSphere Virtual Machine

2020-02-17 Thread David Foley
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/fed0cb7e-644a-4344-a18c-01cf3a87beef%40googlegroups.com.