I'm running the task:
- name: Cloning homepage repo... sudo_user: gitpull git: repo=ssh://g...@git.server.com:222/websites/homepage.com.git dest=/var/www/{{ branch}}/ version={{ branch }} accept_hostkey=yes changed_when: False
but the task gets stuck always. I've tried ansible 1.5.5, 1.5.0, 1.5.3 and the latest git (on ArchLinux).
This is the process tree when it's stuck:
25857 pts/1 S+ 0:00 \_ /usr/bin/python /tmp/ansible-tmp-1398860300.45-147818427778432/git 25859 pts/1 S+ 0:00 \_ /usr/bin/git ls-remote ssh://g...@git.server.com:222/websites/homepage.git -h refs/heads/master 25860 pts/1 S+ 0:00 \_ ssh -p 222 g...@git.server.com git-upload-pack '/websites/homepage.git'
If I strace that ssh process I see it tries to read from fd 4, which acording to /proc/25860/fd/4 is /dev/tty
/home/gitpull/.ssh/known_hosts is created but is empty.
I've tried manually cloning the repo and it asks me to confirm the host key, I say 'yes' it's added to known_hosts and the clone finishes soon after.
Then I'd remove /home/gitpull/.ssh/known_hosts and the task gets stuck again.
The target OS is Debian 7.5
/home/gitpull/.ssh/known_hosts is created but is empty.
/home/gitpull/.ssh/known_hosts is created but is empty.
digging through the code it seems to me that the function add_host_key in module_utils/known_hosts.py doesn't support using a different port than the standard one??
--To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/dfdeb0f9-fd64-4318-81dc-8ed4dc9d9f04%40googlegroups.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-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-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/99b90a88-c41c-4c0d-89d8-feb664e6eff2%40googlegroups.com.