how to solve ansible ssh timeout problem

30 views
Skip to first unread message

Mac Kam

unread,
Aug 28, 2019, 11:24:51 PM8/28/19
to Ansible Project
I have facing a problem of ssh timeout when using ansible.
ssh us...@192.168.1.1 just wait maybe 30s then prompt password to entry, but when using ansible, it will prompt unreachable for the host, how can i config in the yaml?
Thank you.

Dick Visser

unread,
Aug 29, 2019, 12:19:16 AM8/29/19
to ansible...@googlegroups.com
Look at the —timeout option, it’s set to 10s by defaults so that’s too short for your case:

Dick


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e20d1e89-54f6-4f27-8914-b90be46cd44e%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

Mac Kam

unread,
Aug 29, 2019, 12:28:55 AM8/29/19
to Ansible Project
Thanks your answer, I have already set the 60s in ansible,cfg, I can see debug log -o ConnectTimeout=60, but unfortunately no improvement.

Mac Kam於 2019年8月29日星期四 UTC+8上午11時24分51秒寫道:

Dick Visser

unread,
Aug 29, 2019, 4:22:39 AM8/29/19
to ansible...@googlegroups.com
First things first - what timeout DO you see with ansible?
And is it consistent across different runs?
> --
> 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/bf7028e5-1856-4f4c-a922-6f968a7742b2%40googlegroups.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT
Reply all
Reply to author
Forward
0 new messages