Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

community.general.proxmox_snap trim snapshots #6576

Closed
1 task done
lexxxel opened this issue May 26, 2023 · 2 comments · Fixed by #6577
Closed
1 task done

community.general.proxmox_snap trim snapshots #6576

lexxxel opened this issue May 26, 2023 · 2 comments · Fixed by #6577
Labels
feature This issue/PR relates to a feature request has_pr module module plugins plugin (any type)

Comments

@lexxxel
Copy link
Contributor

lexxxel commented May 26, 2023

Summary

I would like to be able to trim proxmox snapshots. e.g. I have a gitlab pipeline that snapshots a lxc before each deployment. Over time this will hurt performance and storage. I would like to have the option to create a new snapshot and only keep the last X snapshots.

Issue Type

Feature Idea

Component Name

proxmox_snap

Additional Information

- name: Create new container snapshot and keep only the 2 newest snapshots
  community.general.proxmox_snap:
    api_user: root@pam
    api_password: 1q2w3e
    api_host: node1
    vmid: 100
    state: present
    snapname: snapshot-42
    trim: 2

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

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
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request has_pr module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants