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 On Thu, 29 Aug 2019 at 05:25, Mac Kam <[email protected]> wrote: > I have facing a problem of ssh timeout when using ansible. > ssh [email protected] 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. > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/e20d1e89-54f6-4f27-8914-b90be46cd44e%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/e20d1e89-54f6-4f27-8914-b90be46cd44e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Sent from a mobile device - please excuse the brevity, spelling and punctuation. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwOxnn%3DU6HC4uN8jP6%3DA%3DZq2DCFtBN12iGhNa%2BtcoTXoNQ%40mail.gmail.com.
