Hi, I want to start a json (gcloud) file via command line (win 10 pc) in ansible.
What I am trying now is: name: run command win_command: C:\Windows\System32\cmd.exe gcloud auth activate-service-account --key-file=C:\Users\user\Desktop\foo.json All that happens is the command prompt opens. When I manually paste "gcloud auth activate-service-account --key-file=C:\Users\user\Desktop\foo.json" into a command prompt it works. Thus I just think the syntax is incorrect. Any idea on the proper syntax to run something through cmd? I have also tried win_command: 'C:\Windows\System32\cmd.exe "gcloud auth activate-service-account --key-file=C:\Users\user\Desktop\foo.json"' -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/02ca15c9-f8c8-48f1-9105-b10eb59b1946%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
