I’m trying to use Ansible’s Proxmox collection but I’m running into an issue. When I run my playbook, I get the below
AttributeError: 'ProxmoxKvmAnsible' object has no attribute 'module'
The full traceback for it is:
Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-tmp-1753222641.933565-391060-173645953165216/AnsiballZ_proxmox_vm_info.py", line 107, in <module>
_ansiballz_main()
File "/root/.ansible/tmp/ansible-tmp-1753222641.933565-391060-173645953165216/AnsiballZ_proxmox_vm_info.py", line 99, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/root/.ansible/tmp/ansible-tmp-1753222641.933565-391060-173645953165216/AnsiballZ_proxmox_vm_info.py", line 47, in invoke_module
runpy.run_module(mod_name='ansible_collections.community.proxmox.plugins.modules.proxmox_vm_info', init_globals=dict(_module_fqn='ansible_collections.community.proxmox.plugins.modules.proxmox_vm_info', _modlib_path=modlib_path),
File "<frozen runpy>", line 226, in run_module
File "<frozen runpy>", line 98, in _run_module_code
File "<frozen runpy>", line 88, in _run_code
File "/tmp/ansible_community.proxmox.proxmox_vm_info_payload_xyht9xy6/ansible_community.proxmox.proxmox_vm_info_payload.zip/ansible_collections/community/proxmox/plugins/modules/proxmox_vm_info.py", line 279, in <module>
File "/tmp/ansible_community.proxmox.proxmox_vm_info_payload_xyht9xy6/ansible_community.proxmox.proxmox_vm_info_payload.zip/ansible_collections/community/proxmox/plugins/modules/proxmox_vm_info.py", line 249, in main
File "/tmp/ansible_community.proxmox.proxmox_vm_info_payload_xyht9xy6/ansible_community.proxmox.proxmox_vm_info_payload.zip/ansible_collections/community/proxmox/plugins/module_utils/proxmox.py", line 81, in __init__
I’ve checked my versions and I’m running the Ansible core 2.18
root@xxxx:/usr/src/ansible/KAPS/playbook# ansible --version
ansible [core 2.18.7]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.12.3 (main, Jun 18 2025, 17:59:45) [GCC 13.3.0] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
Ansible collections
# /root/.ansible/collections/ansible_collections
Collection Version
---------------------------------------- -------
community.general 11.1.0
community.proxmox 1.2.0
I’m running a very simple play to just get information and prove it works.
- name: List PX VMs
community.proxmox.proxmox_vm_info:
api_host: "192.168.xxx.xxx"
api_user: "xxxx@pam"
api_password: "xxxxxx"
node: pve
I’m getting this on pretty much any proxmox collection I use. I’ve tried to create a fresh Ubuntu 24.04 image and install from scratch, but have the same issue.
Any assistance you can provide would be appreciated.