New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NEW Source Control module: git add/commit/push #68493
Conversation
The test
|
@Lunik @SamyCoenen @adrianmoisey @andreparames @bincyber @catcombo @dj-wasabi @djmattyg007 @dsummersl @markuman @marwatk @mgedmin @pcgentry @stpierre @waheedi @yeukhon As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add |
The test
|
Hi @FedericoOlivieri The source control modules are going in Could you please raise a new PR against https://github.com/ansible-collections/community.general/ It's amazing that you've added integration test, thank you. If you look at the existing integration tests we have for the In a single PR could you please
|
@FedericoOlivieri Do note that if you want to test push/fetch/pull operations, you will almost certainly want to set up a bare repo. Git will complain if you try to push to the repo that has something check out. General steps for creating and population a bare git repo would be:
|
@tadeboro @gundalow Thanks for your suggestion. I will raise a new PR against However, this module aim to commit and push changes in remote via SSH and HTTPs with user and token. Testing against a local repo won't let trigger all the commands required to push changes to a remote. |
SUMMARY
New module to add
git add
git commit
andgit push
functionalities to Ansible.This is particularly useful for example, network automation where Ansible is used in a CI/CD pipeline for template rendering and device provisioning. With this modules, all changes done in the repo during pipeline iteration (i.e. rendered template or test results) can be pushed back into the repo.
This module has been requested back in December 2018. See here: #50334
https
andssh
git channels are both supported.ISSUE TYPE
COMPONENT NAME