Open damo2929 opened 2 years ago
TASK [update VM configuration] **************************************************************************************************************************************************************************************************************
task path: /home/ansible/ceh-ansible/proxmox-vms.yml:68
<wlsc-windowstest> ESTABLISH LOCAL CONNECTION FOR USER: ansible
<wlsc-windowstest> EXEC /bin/sh -c 'echo ~ansible && sleep 0'
<wlsc-windowstest> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1660581503.6517704-16654-28312638073698 `" && echo ansible-tmp-1660581503.6517704-16654-28312638073698="` echo /home/ansible/.ansible/tmp/ansible-tmp-1660581503.6517704-16654-28312638073698 `" ) && sleep 0'
redirecting (type: modules) community.general.proxmox_kvm to community.general.cloud.misc.proxmox_kvm
Using module file /home/ansible/.ansible/collections/ansible_collections/community/general/plugins/modules/cloud/misc/proxmox_kvm.py
<wlsc-windowstest> PUT /home/ansible/.ansible/tmp/ansible-local-16476vg4lf4l7/tmp1deqgtna TO /home/ansible/.ansible/tmp/ansible-tmp-1660581503.6517704-16654-28312638073698/AnsiballZ_proxmox_kvm.py
<wlsc-windowstest> EXEC /bin/sh -c 'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1660581503.6517704-16654-28312638073698/ /home/ansible/.ansible/tmp/ansible-tmp-1660581503.6517704-16654-28312638073698/AnsiballZ_proxmox_kvm.py && sleep 0'
<wlsc-windowstest> EXEC /bin/sh -c '/usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1660581503.6517704-16654-28312638073698/AnsiballZ_proxmox_kvm.py && sleep 0'
<wlsc-windowstest> EXEC /bin/sh -c 'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1660581503.6517704-16654-28312638073698/ > /dev/null 2>&1 && sleep 0'
changed: [wlsc-windowstest] => {
"changed": true,
"invocation": {
"module_args": {
"acpi": null,
"agent": null,
"api_host": "192.168.5.178",
"api_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"api_token_id": null,
"api_token_secret": null,
"api_user": "root@pam",
"args": null,
"autostart": null,
"balloon": null,
"bios": null,
"boot": null,
"bootdisk": null,
"cicustom": null,
"cipassword": null,
"citype": null,
"ciuser": null,
"clone": null,
"cores": null,
"cpu": null,
"cpulimit": null,
"cpuunits": null,
"delete": null,
"description": null,
"digest": null,
"efidisk0": null,
"force": null,
"format": null,
"freeze": null,
"full": true,
"hostpci": null,
"hotplug": null,
"hugepages": null,
"ide": null,
"ipconfig": null,
"keyboard": null,
"kvm": null,
"localtime": null,
"lock": null,
"machine": null,
"memory": null,
"migrate_downtime": null,
"migrate_speed": null,
"name": "wlsc-windowstest",
"net": null,
"newid": null,
"node": "b550",
"numa": null,
"numa_enabled": null,
"onboot": null,
"ostype": null,
"parallel": null,
"pool": null,
"protection": null,
"proxmox_default_behavior": "no_defaults",
"reboot": null,
"revert": null,
"sata": {
"sata0": "none,media=cdrom"
},
"scsi": null,
"scsihw": null,
"serial": null,
"shares": null,
"skiplock": null,
"smbios": null,
"snapname": null,
"sockets": null,
"sshkeys": null,
"startdate": null,
"startup": null,
"state": "present",
"storage": null,
"tablet": null,
"tags": null,
"target": null,
"tdf": null,
"template": null,
"timeout": 30,
"update": true,
"validate_certs": false,
"vcpus": null,
"vga": null,
"virtio": null,
"vmid": null,
"watchdog": null
}
},
"msg": "VM wlsc-windowstest with vmid 10003 updated",
"vmid": 10003
}
I don't get an error when running it
cc @Ajpantuso @Thulium-Drake @helldorado @joshainglis @karmab @tleguern click here for bot help
cc @UnderGreen click here for bot help
cc @krauthosting click here for bot help
Summary
HI all am looking at how I can manage ISO media using the proxmox kvm module
the proxmox web UI lets you set the Cdrom drive to be empty by setting the interface to "none,media=cdrom"
when I set the same using the proxmox_kvm module and setting the update nothing changes.
how is it support to be done?
Issue Type
Documentation Report
Component Name
proxmox_kvm
Ansible Version
ansible [core 2.12.2] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /home/ansible/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.9.10 (main, Feb 9 2022, 00:00:00) [GCC 11.2.1 20220127 (Red Hat 11.2.1-9)] jinja version = 2.11.3 libyaml = True
Community.general Version
[ansible@Ansible ansible]$ ansible-galaxy collection list community.general
/usr/lib/python3.9/site-packages/ansible_collections
Collection Version
community.general 4.5.0
Configuration
[ansible@Ansible ansible]$ ansible-config dump --only-changed [ansible@Ansible ansible]$
OS / Environment
Rockylinux 9
Additional Information
No response
Code of Conduct