# Community.proxmox.proxmox\_storage module: missing backup retention and nfs options

**URL:** <https://forum.ansible.com/t/community-proxmox-proxmox-storage-module-missing-backup-retention-and-nfs-options/44699>\
**Category:** Get Help\
**Tags:** proxmox\
**Created:** [October 16, 2025, 8:47pm UTC](https://forum.ansible.com/t/community-proxmox-proxmox-storage-module-missing-backup-retention-and-nfs-options/44699 "2025-10-16T20:47:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DengelFred](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@DengelFred](https://forum.ansible.com/u/DengelFred)\
**Post date:** [October 16, 2025, 8:47pm UTC](https://forum.ansible.com/t/community-proxmox-proxmox-storage-module-missing-backup-retention-and-nfs-options/44699/1 "2025-10-16T20:47:18Z")

</div>

Hello,

I noticed that the module ignores the nfs\_options/options setting. I checked the source already and it seems its really missing…  
And I need the “prune-backups” setting for storages.  
I prepared a patch but I’m unsure how to test this patched collection? Is there a tutorial for that? And I need a tutorial how to create a PR .. would be my first one 😉

```diff
$ git diff
diff --git a/plugins/modules/proxmox_storage.py b/plugins/modules/proxmox_storage.py
index ce138b6..4e47b7d 100644
--- a/plugins/modules/proxmox_storage.py
+++ b/plugins/modules/proxmox_storage.py
@@ -299,6 +299,7 @@ class ProxmoxNodeAnsible(ProxmoxAnsible):
         storage_type = self.module.params['type']
         nodes = self.module.params['nodes']
         content = self.module.params.get('content')
+ prune-backups = self.module.params.get('prune-backups')
 
         # Create payload for storage creation
         payload = {
@@ -307,6 +308,8 @@ class ProxmoxNodeAnsible(ProxmoxAnsible):
             'nodes': nodes,
             'content': content
         }
+ if prune-backups:
+ payload['prune-backups'] = prune-backups
 
         # Validate required parameters based on storage type
         if storage_type == "cephfs":
@@ -364,11 +367,14 @@ class ProxmoxNodeAnsible(ProxmoxAnsible):
             nfs_options = self.module.params.get(f'{storage_type}_options', {})
             server = nfs_options.get('server')
             export = nfs_options.get('export')
+ options = nfs_options.get('options')
             if not all([server, export]):
                 self.module.fail_json(msg="NFS storage requires 'server' and 'export' parameters.")
             else:
                 payload['server'] = server
                 payload['export'] = export
+ if options:
+ payload['options'] = options
 
         if storage_type == "pbs":
             pbs_options = self.module.params.get(f'{storage_type}_options', {})

```

Thomas

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [October 17, 2025, 5:29am UTC](https://forum.ansible.com/t/community-proxmox-proxmox-storage-module-missing-backup-retention-and-nfs-options/44699/2 "2025-10-17T05:29:38Z")

</div>

I’d clone the repository (your fork of it) into `/path/to/ansible_collections/community/proxmox` (with `/path/to` adjusted to what you want); then you can set the environment variable `ANSIBLE_COLLECTIONS_PATH=/path/to` ([docs](https://docs.ansible.com/ansible/devel/reference_appendices/config.html#collections-paths)) and Ansible will find and use your community.proxmox checkout.

Also this should help you: [Creating your first collection pull request — Ansible Community Documentation](https://docs.ansible.com/ansible/devel/community/create_pr_quick_start.html)
