Conversation
--global refers to the WinRM user's home path, specifically setting the --system file path with -f is best
|
@kenmoini Thanks for submitting this PR. I'm not sure how this is improving or fixing an issue? I think the intention here is to define git configuration for a specific user and not system wide. I don't see how specifying C:\Windows directory would help. Please clarify. Thanks. |
|
Oh hey, sorry, shoulda clarified better. Running Ansible 2.9 on Ubuntu. Would fail at windows-workstation : Copy .gitconfig to user directory as the 5 previous commands weren't being written to C:\Windows.gitconfig, where that step tries to copy from. Verbosely stating the config file in the windows-workstation : allow insecure git repos for self signed certificates and the following set git * tasks allows the windows-workstation : copy .gitconfig to user directory task to pass. I believe 2.9 caused a number of errors maybe, I had to specifically set the var for ansible_user to ec2-user when deploying the RHEL systems. Didn't get too deep to check for adding that variable switching based on deployment infrastructure targets. |
|
@kenmoini thanks for providing more context. let's keep this PR open for now until we can replicate the issue/fix. |
--global refers to the WinRM user's home path, specifically setting the --system file path with -f is best