Updated clean for change
This commit is contained in:
parent
8819fa68bd
commit
b5f73defb8
1 changed files with 7 additions and 2 deletions
|
@ -1,7 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Prune docker
|
- name: Prune docker
|
||||||
hosts: all
|
hosts: all
|
||||||
|
|
||||||
|
vars:
|
||||||
|
prune_def: "Total reclaimed space: 0B"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Docker prune all
|
- name: Docker prune all
|
||||||
ansible.builtin.shell:
|
command: docker system prune -af
|
||||||
cmd: docker system prune -af
|
register: docker_prune
|
||||||
|
changed_when: docker_prune.stdout != prune_def
|
||||||
|
|
Reference in a new issue