I have this issue too. I use SSH repo access, and I think that Ansible just 
hangs on this:

The authenticity of host 'bitbucket.org (131.103.20.167)' can't be 
established.
RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40.
Are you sure you want to continue connecting (yes/no)?

It happens when I try to clone manually from SSH.

On Friday, May 10, 2013 4:34:59 AM UTC+4, Shirou w wrote:
>
> Hi, Niels, 
>
> I can clone on my localhost with following playbook. 
>
> ------------------------- 
> - hosts: localhost 
>   user: shirou 
>   sudo: no 
>   tasks: 
>     - name: Clone API repo 
>       hg: dest=/tmp/ansible-test 
> repo=https://[email protected]/r_rudi/ansible-test 
> ------------------------- 
>
> Could you show me the more information by using -vvv option? 
> (or 'hangs' meens not responded for a long time?) 
>
> Regards, 
> WAKAYAMA Shirou 
>
>
> 2013/5/9 Michael DeHaan <[email protected] <javascript:>>: 
> > Definitely post questions here and not on StackOverflow, everybody's 
> here, 
> > and I don't post there either. 
> > 
> > I'm not a bitbucket user (others in community land contributed the 
> module), 
> > but I would assume the problem is you are not supplying the password 
> when 
> > you are cloning the repo? 
> > 
> > That would be true of github. 
> > 
> > 
> > 
> > 
> > 
> > On Thu, May 9, 2013 at 4:27 AM, Niels Dequeker 
> > <[email protected]<javascript:>> 
>
> > wrote: 
> >> 
> >> Hello everyone 
> >> 
> >> I am starting with Ansible and I really like it so far. But at the 
> moment 
> >> I'm kinda stuck, because I can't clone from a repository. 
> >> I have also posted this question on StackOverflow, but it seems that 
> there 
> >> is more activity on this Google Usergroup. 
> >> 
> >> When I try to clone a repository from Bitbucket with Ansible, it seems 
> >> like the task 'hangs'. 
> >> In the I have found some information, but I'm not using SSH. 
> >> 
> >>> If the task seems to be hanging, first verify remote host is in 
> >>> known_hosts. SSH will prompt user to authorize the first contact with 
> >>> a remote host. One solution is to add StrictHostKeyChecking no in 
> >>> .ssh/config which will accept and authorize the connection on behalf 
> >>> of the user. However, if you run as a different user such as setting 
> >>> sudo to True), for example, root will not look at the user .ssh/config 
> >>> setting. 
> >> 
> >> 
> >> These are the two Playbooks I've tried. They both 'hang'. 
> >> 
> >> Playbook #1 
> >>     - hosts: staging_mysql 
> >>       user: ec2-user 
> >>       sudo: yes 
> >> 
> >>       vars_files: 
> >>         - vars/mercurial.yml 
> >> 
> >>       tasks: 
> >>         - name: Mercurial credentials setup 
> >>           action: template src=templates/hgrc.j2 
> dest=/home/ec2-user/.hgrc 
> >> 
> >>         - name: Install Mercurial 
> >>           action: yum name=hg 
> >> 
> >>         - name: Setup API repository 
> >>           action: command hg clone 
> >> https://[email protected]/username/my-repo -r default --debug 
> >> 
> >> Playbook #2 
> >> 
> >>     - hosts: staging_mysql 
> >>       user: ec2-user 
> >>       sudo: yes 
> >> 
> >>       vars_files: 
> >>         - vars/mercurial.yml 
> >> 
> >>       tasks: 
> >>         - name: Mercurial credentials setup 
> >>           action: template src=templates/hgrc.j2 
> dest=/home/ec2-user/.hgrc 
> >> 
> >>         - name: Install Mercurial 
> >>           action: yum name=hg 
> >> 
> >>         - name: Clone API repo 
> >>           hg: dest=/home/ec2-user 
> >> repo=https://[email protected]/username/my-repo 
> >> 
> >> Any help is welcome as I'd like to continue with Ansible. Thanks in 
> >> advance! 
> >> 
> >> -- 
> >> 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 [email protected] <javascript:>. 
> >> For more options, visit https://groups.google.com/groups/opt_out. 
> >> 
> >> 
> > 
> > 
> > 
> > 
> > -- 
> > Michael DeHaan <[email protected] <javascript:>> 
> > CTO, AnsibleWorks, Inc. 
> > http://www.ansibleworks.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 [email protected] <javascript:>. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/43588748-a5f0-447f-9852-74c898d5d9fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to