is anyone using docker_login with Google Cloud Registry?
I am attempting to do so by defining variable for auth token:
gcloud_token_file: gcp_sa_account.json
gcloud_token: "{{ lookup('file', gcloud_token_file) }}"
and then trying to login:
docker_login: username="_json_key" password="{{ gcloud_token | to_json | quote }}" email="{{ docker_auth_email }}" registry="gcr.io" reauthorize="yes"
it looks like ansible instead of picking up "raw" contents of the file auto-converts it into structure as soon as it notices JSON so I have to "un-convert" it with to_json, however as soon as I do that it seems like escaping/quoting goes out the window and I am unable to get login to work as expected. Using the same gcp_sa_account.json I can login just find using
docker login -e some@email.com -u _json_key -p "$(cat gcp_sa_account.json)" https://gcr.io I looked online and couldn't find any samples of people using it. is it just not meant to be functional with GCR?