1 playbook, 20 tasks, 10 targets/hosts. On 9 host tasks runs similar time - a couple of minutes. On 1 server 15'th tasks takes 1,5h. After that time last 5 task runs quickly and end result report is produced for whole 10 hosts.
I have two problems/questions.
Is there any simple way to debug/check which exactly task and on which host is a blocker? Now I have to analyze log output and check what task is "missing" from log - that task is running currently obviously.
I use "strategy: free" so my 9 hosts are done quite quickly(10 minutes) but I have report about it after my largest host/task - 2h after. I can't exclude that host and run it in separate job because I am not able to tell which one will be the blocker that day (I know it sounds weird - but it is). So is it possible to get some final report about a single host? It would be ofcourse between regular tasks but it is enough. Easy to grep and "tag"(in my excel) host as done (even without final successfull report).
Maybe I'm stating the obvious but if one task is taking 1.5h then that
would be very visible while running the playbook.
So that task would be the culprit.
As to why it happens on different hosts, that's impossible to tell
without more information, such as what that task looks like.
Dick
On Mon, 16 Dec 2019 at 09:36, Aaa Bbb <jsde...@gmail.com> wrote:
>
> 1 playbook, 20 tasks, 10 targets/hosts. On 9 host tasks runs similar time - a couple of minutes. On 1 server 15'th tasks takes 1,5h. After that time last 5 task runs quickly and end result report is produced for whole 10 hosts.
>
> I have two problems/questions.
>
> Is there any simple way to debug/check which exactly task and on which host is a blocker? Now I have to analyze log output and check what task is "missing" from log - that task is running currently obviously.
>
> I use "strategy: free" so my 9 hosts are done quite quickly(10 minutes) but I have report about it after my largest host/task - 2h after. I can't exclude that host and run it in separate job because I am not able to tell which one will be the blocker that day (I know it sounds weird - but it is). So is it possible to get some final report about a single host? It would be ofcourse between regular tasks but it is enough. Easy to grep and "tag"(in my excel) host as done (even without final successfull report).
>
> --
> 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...@googlegroups.com.