ansible taking a really long time

22 views
Skip to first unread message

mikee...@gmail.com

unread,
Oct 20, 2020, 5:22:32 PM10/20/20
to Ansible Project
When I run: $ ansible all -m command -a uptime -o
for 97 hosts (Solaris and GNU/Linux) the command (just ran) takes 31 minutes.

How can I find where the time is being spent?
I have a custom ~/.ansible.cfg that specifies my inventory and “remote_tmp = $HOME/.ansible/tmp” (to get around a Solaris issue).
I have environment variables of ANSIBLE_INVENTORY and ANSIBLE_LOG_PATH. I’m running this on a RHEL 7 box that is idle.

TIA

Mike

Joseph Alexander

unread,
Oct 20, 2020, 5:37:18 PM10/20/20
to ansible...@googlegroups.com
two questions:

is your inventory dynamic? Is it running a script to fetch and create it each time?
second, what about running: ansible all -m ping
does that also take ~31 minutes to return?


--
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/6082c936-bc96-4152-80b8-994c8fb31a04n%40googlegroups.com.

Mike Eggleston

unread,
Oct 20, 2020, 6:32:35 PM10/20/20
to ansible...@googlegroups.com
Inventory is static and I’ll run the command when I back online. :)

Mike

On Oct 20, 2020, at 16:36, Joseph Alexander <joseph.al...@gmail.com> wrote:



Mike Eggleston

unread,
Oct 21, 2020, 8:17:29 AM10/21/20
to ansible...@googlegroups.com
This morning the command “ansible all -m ping” took 34 seconds and my “standard” command “audible all -m command -a uptime -o” took 15 seconds. Maybe it was a fluke. Thank you Joseph for answering. I’ll monitor throughout the day.

Mike
Reply all
Reply to author
Forward
0 new messages