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
Almost a year after you, I’ve the same problem. I guess you fixed your problem another way, but for anyone that is currently in the same situation, I found a trick to not let the lookup interpret your json …