gitlab_runner: Add image prune cron job task to playbook

This commit is contained in:
saibotk 2021-12-14 19:27:16 +01:00
parent d24c0d960b
commit 1428d4f514
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -25,3 +25,11 @@
- gitlab_runner
environment:
PYTHONPATH: /opt/ansible-dependencies/lib/python{{ env_ansible_deps_python_version | default(2.7) }}/site-packages
tasks:
- name: Install docker image prune crontab
cron:
name: "Prune unused docker images"
minute: "0"
hour: "*/4"
job: "docker image prune -f"
become: true