When to use static vs dynamic task include

Hi,

I want to understand when to use static task inclusion vs dynamic.

I recently ran into an issue where the ignore_errors directive was not getting passed to the included tasks because it was not dynamically loaded.
The task looks like this:

`

  • include:
    static: no
    ignore_errors: yes
    `

But from my understanding, having “static: no” option would apply ignore_errors to the include task, rather than the included tasks from . Please let me know what is the correct behavior here.

Also, what are the recommendations to use one over the other?

Thanks,
Divya