Skip to content

Commit

Permalink
Add crontab to clear docker cache daily at 2am
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cameron <[email protected]>
  • Loading branch information
JasonLovesDoggo committed Nov 30, 2024
1 parent 7763a80 commit 0ddeb20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions automation/playbooks/tasks/common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- name: Add crontab to clear old docker cache
ansible.builtin.cron:
name: clear docker cache
minute: 0
hour: 2
job: docker system prune -f
user: root
2 changes: 2 additions & 0 deletions automation/playbooks/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
tasks:
- name: Update SSH keys
ansible.builtin.include_tasks: "tasks/users.yml"
- name: Run common tasks
ansible.builtin.include_tasks: "tasks/common.yml"

- name: Update each WLMOJ repository
environment:
Expand Down

0 comments on commit 0ddeb20

Please sign in to comment.