# ansible-pull support for git repo containing submodules?

**URL:** <https://forum.ansible.com/t/ansible-pull-support-for-git-repo-containing-submodules/20879>\
**Category:** Ansible Project\
**Created:** [March 16, 2016, 12:14am UTC](https://forum.ansible.com/t/ansible-pull-support-for-git-repo-containing-submodules/20879 "2016-03-16T00:14:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![digitalsy](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@digitalsy](https://forum.ansible.com/u/digitalsy)\
**Post date:** [March 16, 2016, 12:14am UTC](https://forum.ansible.com/t/ansible-pull-support-for-git-repo-containing-submodules/20879/1 "2016-03-16T00:14:22Z")

</div>

I can’t seem to figure out if this is supported (if so what am I missing?) or if this just hasn’t come up yet anywhere. I haven’t found many/any scenarios online of anyone experiencing the same issues.

I understand that the git module within ansible now has ‘force’ and ‘recursive’ support, but what about ansible-pull?

I’m trying to use ansible-pull on a particular repo that has a submodule within it, and ansible-pull is choking:

[root@openvm-X04RA0 tmp]# ansible-pull --purge --accept-host-key -i /tmp/hosts --vault-password-file /tmp/vault\_pass --private-key /tmp/gitkey -U [git@gitlab.mycompany.com](mailto:git@gitlab.mycompany.com):team/ansible-playbooks.git -d /tmp/ansible-playbook  
Starting Ansible Pull at 2016-03-15 17:07:37  
/usr/bin/ansible-pull --purge --accept-host-key -i /tmp/hosts --vault-password-file /tmp/vault\_pass --private-key /tmp/gitkey -U [git@gitlab.mycompany.com](mailto:git@gitlab.mycompany.com):devit/ansible-playbooks.git -d /tmp/ansible-playbook  
localhost | FAILED! =\> {  
“changed”: false,  
“failed”: true,  
“msg”: “Failed to init/update submodules: Submodule ‘roles/common/files/zabbixapi’ ([git@gitlab.mycompany.com](mailto:git@gitlab.mycompany.com):devit/zabbixapi.git) registered for path ‘roles/common/files/zabbixapi’\nCloning into ‘roles/common/files/zabbixapi’…\nGitLab: The project you were looking for could not be found.\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\nClone of ‘git@gitlab.mycompany.com:devit/zabbixapi.git’ into submodule path ‘roles/common/files/zabbixapi’ failed\n”  
}

So is this supported, and if so how would I get ansible-pull to do the equivalient of a ‘git clone --recursive …’ ?

If not supported I guess I’d like it to be and will submit a bug/feature request.

Regards,  
Julian

---

<div class="post-metadata">

**Author:** ![digitalsy](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@digitalsy](https://forum.ansible.com/u/digitalsy)\
**Post date:** [March 17, 2016, 7:00pm UTC](https://forum.ansible.com/t/ansible-pull-support-for-git-repo-containing-submodules/20879/2 "2016-03-17T19:00:42Z")

</div>

Haven’t heard anything back in a few days on this. Should I submit a feature request?
