Replies: 2 comments 2 replies
-
The other reason it's preferable is because that's the way the code will run when you read the playbook. It's always going to start with the tasks in If and only if any of the tasks in the You can also have an Also I'm not sure what you're trying to do with |
Beta Was this translation helpful? Give feedback.
-
I would suggest considering either of the following orders valid:
|
Beta Was this translation helpful? Give feedback.
-
Today I found that one of my role's integration failed with the following error:
And my tasks list looks like this:
I found the name-rescue-block task key order to be helpful as the error handling logic will not be push further down the screen, which is also the justification reasoning of the name-when-block ordering. I know that this order preference is not consistent with the order of the traditional try-catch error handling coding style but I'm curious why the name-block-rescue order is consider to be preferable other than that reasoning.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions