planetary-social / ansible-scripts

Ansible automation scripts used at Planetary
MIT License
2 stars 3 forks source link

add delete-old-blobs cronjob #30

Closed cooldracula closed 1 year ago

cooldracula commented 1 year ago

This pr adds a playbook, intended for our ssb pubs, to setup a cronjob for deleting any blob not accessed in at least 120 days. It is in response to infrastructure ticket #49.

The job is set to run daily at a minute past midnight, will delete the blobs, and then output the total reclaimed space to /var/log/delete-old-blobs.log

I've run the playbook successfully on the pubs already, and now wanna save it for our records.