Can you ping "gh" from that host and is it available in DNS?



On Thu, Aug 14, 2014 at 12:32 AM, James Gatannah <[email protected]>
wrote:

> I'm updating a project (setting up a disposable dev environment) from
> ansible 1.6.2 to 1.7. (Installed and upgraded using pip into a venv).
>
> I've been setting up a user on the host that I'm configuring, with a full
> set of files in .ssh for things like the config (to assign an alias to
> github), known_hosts, and my key to connect to github.
>
> I have a play that used to look like:
>
> - name: Clone repositories
>   git: force=no
>         repo=ssh://gh/me/{{ item }}.git
>         dest=/home/foo/projects={{ item }}
>         key_file=/home/foo/.ssh/github_key
>         recursive=yes
>         update=yes
>         accept_hostkey=yes
>   with_items:
>     - bar
>     - baz
>     - quux
>
> After the upgrade, I started getting this error from each repo:
>
> failed: [host] => (item=...) => {"failed": true, "item": "..."}
> msg: failed to add gh hostkey: getaddrinfo gh: No address associated with
> hostname
>
> Getting rid of accept_hostkey=yes switched the error message to:
> msg: gh has an unknown hostkey. Set accept_hostkey to True or manually add
> the hostkey prior to running the git module
>
> I did notice some messages about adding 192.30.252.128 (along with .130)
> to my list of known_hosts when
> I ssh'd in or cloned the repo manually. (That doesn't seem relevant, but
> the address looked suspicious to me).
>
> The host that I'm configuring is running ubuntu trusty, inside an lxc.
>
> Changing the repo address to ssh://[email protected]/me/{{
> <http://[email protected]/me/%7B%7B> item }}.git seemed to have fixed the
> problem at first glance.
>
> But now I can't actually connect to any of those projects that I just
> cloned. "Permission denied (publickey)."
>
> I can go through and run "git set-url" on each repo to go back to using
> what I think I actually want, but that's a huge part of the pain I use
> ansible to avoid.
>
> Have I missed something about this over the past few months? Or in the
> docs? Is this intended behavior and I'm missing something obvious?
>
> Thanks, and apologies in advance if this is noise,
> James
>
>  --
> 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/cb539d5b-355b-438e-bd60-a7622147abde%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/cb539d5b-355b-438e-bd60-a7622147abde%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgzZC68jYTagSbHfgHD%2BPxEX6h-YrKxeX63q7keW%3Dyij5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to