ansible-collections / community.general

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

proxmox_kvm: Set timeout on Proxmoxer connections #8025

Open aph3rson opened 6 months ago

aph3rson commented 6 months ago

Summary

This is related to this PVE Forums thread. I'm having issues with a slow-to-respond PVE API, and the current timeout is set to the default of 5 seconds. I'd like to be able to increase that.

Issue Type

Feature Idea

Component Name

proxmox_kvm

Additional Information

Here's an example of what this might look like in a template:

      community.general.proxmox_kvm:
        api_host: "{{ hostvars.pve.ansible_host }}"
        api_user: "{{ hostvars.pve.ansible_user }}@pam"
        api_password: "{{ hostvars.pve.ansible_ssh_pass }}"
        api_timeout: 10  # <--- new
        node: pve-1
        vmid: "{{ item.value.vmid }}"
        state: absent

Code of Conduct

ansibullbot commented 6 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 6 months ago

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