Setup a cron job to cleanup docker containers
This commit is contained in:
parent
11e49eb76e
commit
78d860bfcb
1 changed files with 6 additions and 0 deletions
|
@ -29,3 +29,9 @@
|
||||||
uid: "{{ docker_user.id }}"
|
uid: "{{ docker_user.id }}"
|
||||||
group: "{{ docker_user.name }}"
|
group: "{{ docker_user.name }}"
|
||||||
create_home: false
|
create_home: false
|
||||||
|
|
||||||
|
- name: Clean up docker containers
|
||||||
|
cron:
|
||||||
|
name: clean up docker containers
|
||||||
|
special_time: weekly
|
||||||
|
job: "docker system prune"
|
||||||
|
|
Loading…
Reference in a new issue