aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/docker/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/docker/tasks')
-rw-r--r--roles/docker/tasks/main.yml16
1 files changed, 8 insertions, 8 deletions
diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml
index 71e13de..eddc811 100644
--- a/roles/docker/tasks/main.yml
+++ b/roles/docker/tasks/main.yml
@@ -1,19 +1,19 @@
- name: Check if Docker is installed
command: docker --version
register: docker_version
- changed_when: no
- failed_when: no
+ changed_when: false
+ failed_when: false
- name: Clean up Docker data
- become: yes
+ become: true
command: docker system prune -a -f --volumes
# Broken after a Docker upgrade:
#community.docker.docker_prune:
- # containers: yes
- # images: yes
+ # containers: true
+ # images: true
# images_filters:
# dangling: false
- # networks: yes
- # volumes: yes
- # builder_cache: yes
+ # networks: true
+ # volumes: true
+ # builder_cache: true
when: docker_version.rc == 0