- name: Get password for GCR login.
  command: gcloud auth print-access-token
  register: gcrpassword
  register: result
  retries: 30
  until: result | succeeded
- name: Authenticate with GCR.
  docker_login:
    registry_url: https://gcr.io
    username: oauth2accesstoken
    password: "{{gcrpassword.stdout}}"
  register: result
  retries: 30
  until: result | succeeded

- name: Get password for GCR login.
  command: gcloud auth print-access-token
  register: gcrpassword_result
  retries: 30
  until: gcrpassword_result | succeeded
- name: Authenticate with GCR.
  docker_login:
    registry_url: https://gcr.io
    username: oauth2accesstoken
    password: "{{gcrpassword_result.stdout}}"
  register: result
  retries: 30
  until: result | succeeded

Fix GCR login playbook bug.
Fix GCR login playbook bug.
