I’ve installed ansible in CentOS6.5, then added host group bocai_ecs_all in /etc/ansible/ansible.cfg.
[bocai_ecs_all]
bocaiserver1
bocaiserver2 (centos7.6)
bocaiserver3
bocaiserver4 (centos7.6)
bocaiserver5
And then run the following command in shell, some machines took very long time about 60 seconds. I found those slow machines are all installed CentOS7.6. ansible bocai_ecs_all -m ping
I've installed ansible in CentOS6.5, then added host group *bocai_ecs_all* in /etc/ansible/ansible.cfg.
[bocai_ecs_all]
bocaiserver1
bocaiserver2 (centos7.6)
bocaiserver3
bocaiserver4 (centos7.6)
bocaiserver5
And then run the following command in shell, some machines took very long time about 60 seconds. I found those slow
machines are all installed CentOS7.6.
*ansible bocai_ecs_all -m ping*
what will be the cause?
Check the DNS setup on the affected machine. It is possible that they try a reverse lookup on the IP you connect from,
but can not reach the configured DNS server.
Thanks for your reply.
I can get success ping response from CentOS6.5(ansible is installed)on the server with CentOS7.6. And I can also quickly logon to server(CentOS7.6) from the CentOS6.5 via ssh.