#Has someone here already implemented the
1 messages · Page 1 of 1 (latest)
You might be able to do this using the snapshot_auto_delete option
https://docs.ansible.com/ansible/devel/collections/netapp/ontap/na_ontap_volume_module.html#parameter-snapshot_auto_delete
There some issue here on snapshot https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_to_use_Snapshot_Autodelete
That is not feasible. As an example: If you have a snapmirror policy with 90 daily snapshots and you change the policy to 30 daily snapshots, you need to delete all snapshots older than 30 days.
In the meantime I found the solution. With the ansible module "command" you can play with date. Convert today date -5 days in epoch, convert from snapshot create_time also in epoch and delete the snapshot if snapshot_epoch_time < today 5 days ..
Could you send me the command you use and I’ll check if it soemthing supported in rest and if we can add it to the module