diff --git a/automation/playbooks/tasks/common.yml b/automation/playbooks/tasks/common.yml new file mode 100644 index 0000000..841ac80 --- /dev/null +++ b/automation/playbooks/tasks/common.yml @@ -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 diff --git a/automation/playbooks/update.yml b/automation/playbooks/update.yml index 58390ad..bc2449b 100644 --- a/automation/playbooks/update.yml +++ b/automation/playbooks/update.yml @@ -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: