gitlab_runner: Add image prune cron job task to playbook
This commit is contained in:
parent
d24c0d960b
commit
1428d4f514
1 changed files with 8 additions and 0 deletions
|
@ -25,3 +25,11 @@
|
||||||
- gitlab_runner
|
- gitlab_runner
|
||||||
environment:
|
environment:
|
||||||
PYTHONPATH: /opt/ansible-dependencies/lib/python{{ env_ansible_deps_python_version | default(2.7) }}/site-packages
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue