diff --git a/common/docker/tasks/main.yml b/common/docker/tasks/main.yml index e7379036088c7ccecedc1f1830fff91602c5c155..967ae2411a6609fcbb4d87c897c89576bac8c9ad 100644 --- a/common/docker/tasks/main.yml +++ b/common/docker/tasks/main.yml @@ -21,7 +21,7 @@ notify: restart docker - name: Cronjob to prune unused images - cron: name="docker-prune" weekday="*" hour="5" minute="5" job="/usr/bin/docker system prune --all -f" + cron: name="docker-prune" weekday="*" hour="5" minute="5" job="/usr/bin/docker system prune --volumes --all -f" - name: "Create internal Networks: {{ docker.internal_networks }}" docker_network: