I realise this is an old thread but this does seem to be a reverse lookup 
issue. I am seeing this using one Vagrant VM as an Ansible server and 
another as an Ansible target and connecting to it via an SSH port forwarded 
to the Windows host server (not sure how much of this is relevant). Anyhow, 
it is a 60 second timeout on my set up and I resolved it by adding the 
target host name to /etc/hosts as an alias to 127.0.0.1. 

On Saturday, 30 November 2013 09:28:55 UTC, Michel Blanc wrote:
>
> On 30/11/2013 02:59, Steven Haddox wrote: 
> > $ time ansible-playbook provisioning/site.yml -i 
> > provisioning/hosts/vagrant -u vagrant -s -v 
> > 
> > Brian: I checked the sshd_config and it already has the "UseDNS no" line 
> > set via vagrant's tweaks itself apparently. 
> > 
> > Overall there isn't an error that's ever thrown, just a long delay 
> > between the "GATHERING FACTS" start time and end time before the play 
> > books run as expected... 
>
> Steven, 
>
> Could you compare the timings for : 
>
> time ansible <only one host> -m ping -i provisioning/hosts/vagrant -u 
> vagrant -s -v 
>
> and 
>
> time ansible <same host> -m setup -i provisioning/hosts/vagrant -u 
> vagrant -s -v 
>
> While you're doing that, it could be great to have a tcpdump running on 
> the vagrant machine in some other terminal, tracking network traffic : 
>
> vagrant ssh <host> "tcpdump -nviany port not 22" 
>
> Your problem really sounds like a netwprk time out issue on the vagrant 
> host (with DNS reverse lookup being the ususal suspect). However, I've 
> skimmed through setup module code and it doesn't do any DNS lookup 
> AFAIK... So it might be something else. 
>
> M 
> -- 
> Michel Blanc 
> { :github => "@leucos", :twitter => "@b9m", :gpg => "0X24B35C22" } 
>

-- 


**********************************************************************
This email is confidential and may contain copyright material of the John 
Lewis Partnership. 
If you are not the intended recipient, please notify us immediately and 
delete all copies of this message. 
(Please note that it is your responsibility to scan this message for 
viruses). Email to and from the
John Lewis Partnership is automatically monitored for operational and 
lawful business reasons.
**********************************************************************

John Lewis plc
Registered in England 233462
Registered office 171 Victoria Street London SW1E 5NN

Websites: http://www.johnlewis.com 
http://www.waitrose.com 
http://www.johnlewis.com/insurance
http://www.johnlewispartnership.co.uk

**********************************************************************

-- 
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/106e4f5f-2280-496e-9da0-247b163497a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to