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