Description:
When running a playbook that uses the community.general.proxmox_snap module, I get the following error:
TASK [Create snapshot] ******************************************************************************************************
ERROR! couldn't resolve module/action 'community.general.proxmox_snap'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/home/tealk/ansible/roles/proxmox_snapshot/tasks/main.yml': line 5, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Create new container snapshot and keep only the 2 newest snapshots
^ here
[DEPRECATION WARNING]: community.general.proxmox_snap has been deprecated. The
proxmox content has been moved to community.proxmox. This feature will be
removed from community.general in version 15.0.0. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
Also, when running in adhoc, you get this:
localhost | FAILED! => {
"msg": "The module community.general.proxmox_snap was redirected to community.proxmox.proxmox_snap, which could not be loaded."
}
There is a new warning in 2.19+ that shows:
[WARNING]: Error loading plugin 'community.proxmox.proxmox_snap': No module named 'ansible_collections.community.proxmox'
@Tealk Glad you got it sorted. I believe this is your first forum post. Welcome to the Ansible Community, and thanks for marking using the âSolution Solvedâ button.