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
|
||||
hosts: all
|
||||
|
||||
vars:
|
||||
prune_def: "Total reclaimed space: 0B"
|
||||
|
||||
tasks:
|
||||
- name: Docker prune all
|
||||
ansible.builtin.shell:
|
||||
cmd: docker system prune -af
|
||||
command: docker system prune -af
|
||||
register: docker_prune
|
||||
changed_when: docker_prune.stdout != prune_def
|
||||
|
|
Reference in a new issue