Commit 262d9181 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

Add cronjob to prune docker system once per day

parent e7399612
......@@ -36,7 +36,7 @@
groups: docker
append: yes
- name: Deply ansible script to run inside Docker
- name: Deploy ansible script to run inside Docker
dest: /usr/local/bin/ansible
......@@ -44,4 +44,14 @@
group: root
mode: 0755
- name: Cleanup Docker once per day
name: Cleanup Docker
hour: 23
minute: 55
job: /usr/bin/docker system prune -f > /dev/null 2>&1
disabled: '{{ crons_disabled|default(false) }}'
- cron
when: not excluded_roles or "gitlab-runner" not in excluded_roles
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment