By the (limited) amount of information it looks like you want to
commit something.
The git module (https://docs.ansible.com/ansible/latest/modules/git_module.html)
is targeted toward checking out repos, not committing to them.
So I assume you'd have to structure it something like this:
1. use the git module to checkout your repo
2. use the get_url module to retrieve your file and save it in your repo
3. use the command or shell module to add the file and commit
-
On 4 July 2018 at 13:53, Pradeep Drall <drallp...@gmail.com> wrote:
> Fetching file from remote server to github repository using Ansible script
> Server A -> remote server like httpd
> Server B -> gihub repository
>
> --
> 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 ansible-project+unsubscribe@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/296f3db2-97a2-46bc-8488-272a058a6af7%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT
T: +31205304488
M: +31622698108
PGP key fingerprint: F575 58C6 62C6 FD5B A9CD 217C 2667 13D4 E6EF 488D
GÉANT Vereniging (Association) is registered with the Chamber of
Commerce in Amsterdam with registration number 40535155 and operates
in the UK as a branch of GÉANT Vereniging. Registered office:
Hoekenrode 3, 1102 BR Amsterdam, The Netherlands. UK branch address:
City House, 126-130 Hills Road, Cambridge CB2 1PQ, UK.
Want to join us? We're hiring: https://www.geant.org/jobs
--
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 ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwPLAb6t13MMd%3D9-Ya4ngvrbBd8388wsP7m4fZ3i6h0eAw%40mail.gmail.com.
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/296f3db2-97a2-46bc-8488-272a058a6af7%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT
T: +31205304488
M: +31622698108
PGP key fingerprint: F575 58C6 62C6 FD5B A9CD 217C 2667 13D4 E6EF 488D
GÉANT Vereniging (Association) is registered with the Chamber of
Commerce in Amsterdam with registration number 40535155 and operates
in the UK as a branch of GÉANT Vereniging. Registered office:
Hoekenrode 3, 1102 BR Amsterdam, The Netherlands. UK branch address:
City House, 126-130 Hills Road, Cambridge CB2 1PQ, UK.
Want to join us? We're hiring: https://www.geant.org/jobs
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
--
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 ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwNfM8oG1ZjTBKP%2Baobr4GM3Xd71cbLxPEv41uK94WnWRw%40mail.gmail.com.