Troubles with the ansible's git module concerning to git submodules

67 views
Skip to first unread message

José Pinheiro Neta

unread,
Mar 19, 2014, 5:19:51 AM3/19/14
to ansible...@googlegroups.com
Hi!

In a Roles' task I'm trying to clone a repo in develop branch. That repo has git submodules.

During the task which use the ansible's git module, ansible is hanging up. 

If I ssh to the box while ansible is hanged up I can verify that the clone as been made. 
Although if I interrupt ansible and ssh to box the clone will be wiped out from there.

Re-running the playbook will result in the same behavior. 

The same applies if I clone the repo in the master branch.

Does anyone as already been in this situation?

Cheers,

JPN

Balpreet Singh

unread,
Apr 11, 2014, 8:35:19 AM4/11/14
to ansible...@googlegroups.com
- name: ensure known hosts
  shell: touch ~/.ssh/known_hosts

- name: remove bitbucket.org from known host
  shell: ssh-keygen -R bitbucket.org

- name: ensure bitbucket.org in known host
  shell: ssh-keyscan -H bitbucket.org > ~/.ssh/known_hosts


repo site may vary

Michael DeHaan

unread,
Apr 15, 2014, 5:11:54 PM4/15/14
to ansible...@googlegroups.com
The git module has an "accept_hostkey=yes" option that is intended for this purpose, generally speaking.  I'm not sure if you were using it or not though.

If you are still seeing issues submodules, it's most likely you're running 1.5.X

There are various fixes to submodule handling on 1.6 (devel) -- both applied about two weeks ago on the devel branch, so if you are still seeing issues on devel, let us know by filing a ticket.

Thanks!


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/aaf6e443-5047-43b2-8364-20bd17a68e26%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages