# How to \<git submodule update\> with Ansible's Git module ?

**URL:** <https://forum.ansible.com/t/how-to-git-submodule-update-with-ansibles-git-module/22397>\
**Category:** Ansible Project\
**Created:** [August 26, 2016, 2:06pm UTC](https://forum.ansible.com/t/how-to-git-submodule-update-with-ansibles-git-module/22397 "2016-08-26T14:06:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soren\_Jentzsch](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Soren\_Jentzsch](https://forum.ansible.com/u/Soren_Jentzsch)\
**Post date:** [August 26, 2016, 2:06pm UTC](https://forum.ansible.com/t/how-to-git-submodule-update-with-ansibles-git-module/22397/1 "2016-08-26T14:06:24Z")

</div>

Hi Ansible-Community,

first of all I would like to mention that I am quite proud to be part of the Ansible Community.  
I introduced Ansible within some innovative Robotic-related projects inside a large company where I am working, and so far everyone is happy.

When porting somebody elses code to Ansible 2.x, i found the following code block:

`shell: git submodule update --init`

Ansible gives me a warning:

`[WARNING]: Consider using git module rather than running git`

My question: What is the equivalent of that shell command by using the Ansible git module, in order to get rid of the warning?

I am a bit new to Git submodules, and all that the Git module tells me about submodules is that I can track\_submodules yes/no, but I have no idead what it translates to shell-command-wise.

Thanks for helping out!!

Best from Munich  
Sören
