Ansible task to cleanup file backups

Viewed 235

Is there a way to automatically cleanup backup files ansible creates when useing e.g. the copy or template modules, or to keep the last three backup files for example?

Ansible file backups from template task

1 Answers
Related