feat: added install cron

This commit is contained in:
2024-02-25 19:26:58 +00:00
parent 9b909a6757
commit b6bfaba43e
4 changed files with 36 additions and 10 deletions

View File

@@ -17,14 +17,4 @@
notify:
- restart docker service
- name: Schedule Docker system prune at 0:00 every day
ansible.builtin.cron:
name: "Daily Docker system prune"
user: "root"
job: "docker system prune -af --volumes"
special_time: "daily"
hour: "0"
minute: "0"
when: docker_cronjob_prune
- meta: flush_handlers