Updated clean for change

This commit is contained in:
Edgar P. Burkhart 2021-07-22 17:17:03 +02:00
parent 8819fa68bd
commit b5f73defb8
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -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