I found the issue, the admin account was disabled & auto login was 
on...made auto login false & is good now 
On Wednesday, August 26, 2020 at 5:05:13 PM UTC-7 esxi...@gmail.com wrote:

> Hi
>
> Any help is much appreciated ..  Here is summary of issue :
>
> Module :
> vmware_guest
>
> Error :
>
> "msg": "Failed to create a virtual machine : Cannot complete 
> customization."
>
> Ansible Version : 
> ansible 2.9.10
>
> Playbook :
>
> ---
> - hosts: localhost
>   gather_facts: false
>   connection: local
>   vars_files:
>     - ./vars/xxx.yml
>
>
>   tasks:
>     - name: create vm using template
>       vmware_guest:
>         hostname: "{{ vcenter_server }}"
>         username: "{{ vcenter_user }}"
>         password: "{{ vcenter_pass }}"
>         datacenter: "{{ vcenter_datacenter }}"
>         cluster: "{{ vcenter_cluster }}"
>         template: "{{ vcenter_template }}"
>         validate_certs: no
>         name: "{{ item }}"
>         folder: /xxx
>         state: poweredon
>         wait_for_ip_address: true
>         disk:
>         - size_gb: 80
>           type: thin
>           datastore: xxx
>         hardware:
>           memory_mb: 8192
>           num_cpus: 4
>           num_cpu_cores_per_socket: 4
>           scsi: paravirtual
>         networks:
>         - name: xxx
>           start_connected: true
>         customization:
>           domain: xxx
>           dns_servers: xx
>           dns_suffix: xxx
>           joindomain: xxx
>           autologon: true
>           domainadmin: "xx"
>           domainadminpassword: "xx"
>           hostname: "{{ item }}"
>       with_items: "{{ servers }}"
>   
>   
>   
> Issue :
>
> VM is created but is power-off & is not joined to domain ..basically 
> failed custimization
>
> -vvvv does not show much 
>
> Manually if done ie from vCenter UI, works as expected 
>
>

-- 
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/bd3cc201-2c30-4d00-a5b8-ac4828a3aa64n%40googlegroups.com.

Reply via email to