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

Add a way to create proxmox VM based on backup / archive #6158

Open l00ptr opened 1 year ago

l00ptr commented 1 year ago

Summary

Hi there,

It would be nice to add a way to create a VM based on backup / archive. The proxmox API allows this by using the archive param : https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu

When restoring / creating a VM, we should probably disable all param to customize the new one.

Issue Type

Feature Idea

Component Name

proxmox

Additional Information

This is an example how i imagine to use this feature:

- name: Create a VM from archive (backup)
  community.general.proxmox_kvm:
    api_user: root@pam
    api_password: secret
    api_host: helldorado
    archive: backup-storage:backup/vm/140/2023-03-08T06:41:23Z
    name: spynal

Code of Conduct

ansibullbot commented 1 year 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 1 year ago

cc @Ajpantuso @Thulium-Drake @joshainglis @karmab @tleguern click here for bot help

ansibullbot commented 1 year ago

cc @UnderGreen click here for bot help

ansibullbot commented 7 months ago

cc @krauthosting click here for bot help