execute ansible command very slowly

29 views
Skip to first unread message

MJ

unread,
Sep 30, 2020, 1:47:53 AM9/30/20
to Ansible Project
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?

Thanks in advance!

Stefan Hornburg (Racke)

unread,
Sep 30, 2020, 2:15:22 AM9/30/20
to ansible...@googlegroups.com
On 9/30/20 7:47 AM, MJ wrote:
> 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.

That could be the cause.

Regards
Racke

>
> Thanks in advance!
>
> --
> 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 <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/02134cd9-27c4-428c-8fd4-970827d998b5n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/02134cd9-27c4-428c-8fd4-970827d998b5n%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc

MJ

unread,
Sep 30, 2020, 6:30:53 AM9/30/20
to Ansible Project
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.  
Reply all
Reply to author
Forward
0 new messages