From b02a8c40c76cb2e61c7a664ec156407101201a24 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 25 Jan 2023 14:40:44 +0100 Subject: move tool existence conditionals to role common --- roles/docker/tasks/main.yml | 7 ------- 1 file changed, 7 deletions(-) (limited to 'roles/docker') diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index eddc811..e39d66f 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -1,9 +1,3 @@ -- name: Check if Docker is installed - command: docker --version - register: docker_version - changed_when: false - failed_when: false - - name: Clean up Docker data become: true command: docker system prune -a -f --volumes @@ -16,4 +10,3 @@ # networks: true # volumes: true # builder_cache: true - when: docker_version.rc == 0 -- cgit v1.2.3