matrix-docker-ansible-deploy/roles/custom/matrix-common-after/tasks/run_docker_prune.yml

8 lines
264 B
YAML
Raw Normal View History

2020-10-10 10:11:26 +08:00
---
- name: Run Docker System Prune
ansible.builtin.command:
cmd: "{{ devture_systemd_docker_base_host_command_docker }} system prune -a -f"
register: matrix_common_after_docker_prune_result
changed_when: matrix_common_after_docker_prune_result.rc == 0