On 2022-05-12 (Thu) 19:13, Anil Kumar wrote:
Is this bug?

Yes, but probably one in your own configuration:

On Thursday, May 12, 2022 at 5:19:55 PM UTC+2 Anil Kumar wrote:

    here is my code

    - hosts: localhost
       connection: localhost
       vars:
        vcenter_hostname: myVcenter
        vcenter_username: **************
        vcenter_password: '**********'
       tasks:
       - name: Create a virtual machine from a template
         vmware_guest:
           hostname: "{{ vcenter_hostname }}"
           username: "{{ vcenter_username }}"
           password: "{{ vcenter_password }}"
           validate_certs: no
           folder: /RHEL
           name: mtest
           state: poweredon
           #template: template_el7
           cdrom:
            - controller_number: 0
              controller_type: sata

You define type as sata, but the ansible version that you run only supports 'ide':

https://docs.ansible.com/ansible/2.9/modules/vmware_guest_module.html#parameter-cdrom


Try upgrading to something less ancient, or use 'ide', or don't define controller_type as 'ide' is the default for that anyway.


Dick

--
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/110640df-8217-c87c-90b6-db1cbc1884ad%40gmail.com.

Attachment: OpenPGP_0x266713D4E6EF488D.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to