Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
git module add separate remotes for push / pull #27493
(but others as well).
OS / ENVIRONMENT
STEPS TO REPRODUCE
Something like this would be nice:
# A single URL git: repo: https://github.com/ansible/ansible.git # Different URLs git: repo: pull: firstname.lastname@example.org:ansible/ansible.git push: https://github.com/ansible/ansible.git
In this usage it allows anyone to pull on that machine, but you have to authenticate to push ^. There may be other use-cases that require different URLs, however.
The equivalent of running
Thanks @elaske for this feature idea.
I think some way to separately set push/pull URLs would be a good addition.
Most uses of the git module only ever use pull, so here the
Additional care is need to ensure idempotency and check_mode.
I'm looking forward to a PR for this feature
I am by no means tied to that syntax - the two types is awkward. However, just adding
Here's another I thought of: Managing a fork of a repo. You may want one URL that is just a pull url in addition to your