diff --git a/roles/deploy_container/tasks/main.yml b/roles/deploy_container/tasks/main.yml index 05e1ffc0..83cb959a 100644 --- a/roles/deploy_container/tasks/main.yml +++ b/roles/deploy_container/tasks/main.yml @@ -31,9 +31,10 @@ when: deploy_container.aws_ecr.enabled delegate_to: localhost -- name: Log out of Docker registry to force a login. - community.docker.docker_login: +- name: Remove Docker credentials file. + ansible.builtin.file: state: absent + path: "/home/{{ deploy_user }}/.docker/config.json" delegate_to: localhost - name: Log into Docker registry.