diff --git a/playbooks/prune-docker-images.yml b/playbooks/prune-docker-images.yml index 10979a5..7dc9ba8 100644 --- a/playbooks/prune-docker-images.yml +++ b/playbooks/prune-docker-images.yml @@ -1,6 +1,6 @@ --- -- hosts: docker_hosts +- hosts: kube + become: true tasks: - - name: Prune docker images - community.docker.docker_prune: - images: true + - name: Prune images + command: sudo k3s crictl rmi --prune