This repository has been archived on 2021-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
2021-07-20 08:19:06 +02:00
|
|
|
---
|
|
|
|
- name: Prune docker
|
|
|
|
hosts: all
|
2021-07-22 17:17:03 +02:00
|
|
|
|
|
|
|
vars:
|
|
|
|
prune_def: "Total reclaimed space: 0B"
|
|
|
|
|
2021-07-20 08:19:06 +02:00
|
|
|
tasks:
|
|
|
|
- name: Docker prune all
|
2021-07-22 17:17:03 +02:00
|
|
|
command: docker system prune -af
|
|
|
|
register: docker_prune
|
|
|
|
changed_when: docker_prune.stdout != prune_def
|