I have facing a problem of ssh timeout when using ansible.
ssh user@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.
Look at the —timeout option, it’s set to 10s by defaults so that’s too short for your case:
https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html
Dick
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秒寫道:
First things first - what timeout DO you see with ansible?
And is it consistent across different runs?