You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah I'm thinking one should just be able to supply the contents of the netrc file, fully. Aside from being incorrect, the above template is too restrictive to be useful.
Yes that might be useful. I mean, the current configuration is nice & easy and may cover the majority of people's use cases. On the other hand, in our use case we have multiple roles from different private repositories in our requirements.yml. If different credentials are required for each I think this is currently not possible without some workarounds / "manual" changes. Out-of-the-box I only see these possibilities:
(A) Using git username/password: Only one username/password combination can be configured (=> netrc)
(B) Using git ssh keys: Only one key can be configured (but: e.g. if you want to use github deploy keys and have multiple repos, you would need to configure multiple keys).
According to e.g. https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html, I gather the format of netrc should be:
"default login #{username} password #{password}\n"
instead ofconcourse-ansible-playbook-resource/assets/lib/git_config.rb
Line 17 in 8940530
I had errors complaining about a "bad follower token". For my use case, I overwrote the generated netrc with the following, which fixed the problem:
The text was updated successfully, but these errors were encountered: