ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
823 stars 1.52k forks source link

proxmox_kvm: no support for further `vga` params #8611

Open eliasp opened 3 months ago

eliasp commented 3 months ago

Summary

Currently, proxmox_kvm only supports the following choices for vga: 'std', 'cirrus', 'vmware', 'qxl', 'serial0', 'serial1', 'serial2', 'serial3', 'qxl2', 'qxl3', 'qxl4'

Configuring further aspects of vga, such as memory=64 is not possible. See also the PVE API docs (click POST, scroll down to vga):

[[type=]<enum>] [,clipboard=<vnc>] [,memory=<integer>]

Issue Type

Bug Report

Component Name

proxmox_kvm

Ansible Version

$ ansible --version
ansible [core 2.15.11]
  config file = None
  configured module search path = ['/tmp/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
  ansible collection location = /runner/collections
  executable location = /usr/local/bin/ansible
  python version = 3.9.18 (main, Jan  4 2024, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/usr/bin/python3)
  jinja version = 3.1.3
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general
# /runner/collections/ansible_collections
Collection        Version
----------------- -------
community.general 9.1.0  

Configuration

$ ansible-config dump --only-changed
COLLECTIONS_PATHS(env: ANSIBLE_COLLECTIONS_PATH) = ['/runner/collections']
CONFIG_FILE() = None

OS / Environment

Ansible EE based on RHEL9 UBI

Steps to Reproduce

Try to create a VM using community.general.proxmox_kvm:

- name: Create VM
  community.general.proxmox_kvm:
    name: test-vm-001
    vga: 'qxl,memory=64'
    ...: ...

Expected Results

The VM is created and the memory for VGA is set to 64M.

Actual Results

"msg": "value of vga must be one of: std, cirrus, vmware, qxl, serial0, serial1, serial2, serial3, qxl2, qxl3, qxl4, got: qxl,memory=64"

Code of Conduct

ansibullbot commented 3 months ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 3 months ago

cc @Ajpantuso @Thulium-Drake @UnderGreen @helldorado @joshainglis @karmab @krauthosting click here for bot help