# how to get a complete git log using ansible to do git pull

**URL:** <https://forum.ansible.com/t/how-to-get-a-complete-git-log-using-ansible-to-do-git-pull/28267>\
**Category:** Ansible Project\
**Created:** [August 6, 2018, 7:58am UTC](https://forum.ansible.com/t/how-to-get-a-complete-git-log-using-ansible-to-do-git-pull/28267 "2018-08-06T07:58:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Chang](https://avatars.discourse-cdn.com/v4/letter/e/e68b1a/32.png) [@Eric\_Chang](https://forum.ansible.com/u/Eric_Chang)\
**Post date:** [August 6, 2018, 7:58am UTC](https://forum.ansible.com/t/how-to-get-a-complete-git-log-using-ansible-to-do-git-pull/28267/1 "2018-08-06T07:58:25Z")

</div>

I wrote a easy playbook to been called when devops do a git push with webhook.

if Devs do a git push , webhook will notify my ansible server to run a script which run anisble-playbook myplaybook -i inventory\_name -vvv | tee -a /tmp/myplaybook\_result.log

but the log file only contain the anisble result , not the git pull messages .

and I see no log in git module of ansible.

so , is there anyway to get the git pull messages from remote machine to ansible server ? or just save the log somewhere in remote machine ?
