adriansev
(Adrian Sevcenco)
December 15, 2022, 3:48pm
1
Hi! Would the tasks be automatically ordered when
i register a task1_status and then i require task2
a when: task1_status is succeeded ?
Is there any chance even if the ordering in file
is "task1 -> task2" that task2 is skipped because
task1 did not get to run and register task1_status?
Thanks a lot!
Adrian
system
(system)
December 15, 2022, 3:58pm
2
Tasks are always executed in order for a specific host, even with non
linear strategies the most you can have is hosts at a different task,
but none skipping task order.
adriansev
(Adrian Sevcenco)
December 30, 2022, 8:12am
3
Thanks a lot for clarification!
But then what is the actual intent/usage of pre_tasks and post_tasks?
Thanks a lot!
Adrian
system
(system)
December 31, 2022, 11:44pm
4
pre_tasks run before roles:, which run before tasks: , post_tasks are
really not needed, they run after tasks: