D
D
DrUnich2018-08-26 16:42:35
Automation
DrUnich, 2018-08-26 16:42:35

What is the order of execution of handlers when calling a dependent role?

There are two roles: main and depend. The main - main in the meta has a dependency on another role - depend. In the depend role, there are tasks that pull their handlers. When the main role is called, the tasks of the depend role are executed first, then the tasks of the main role, then the handlers of the depend role, and finally the handlers of the main role. Is this behavior correct? Why are depend role handlers not executed after depend role tasks? How to make the execution order to be: depend tasks -> depend handlers -> main tasks -> main handlers?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2018-08-27
@DrUnich

It looks like this is normal behavior. You can try to pull the execution of handlers at the moment you need by calling the
meta: flush_handlers task at the end of depend

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question