# When to use static vs dynamic task include

**URL:** <https://forum.ansible.com/t/when-to-use-static-vs-dynamic-task-include/23422>\
**Category:** Ansible Project\
**Created:** [January 10, 2017, 8:36pm UTC](https://forum.ansible.com/t/when-to-use-static-vs-dynamic-task-include/23422 "2017-01-10T20:36:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Divya\_Vavili](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@Divya\_Vavili](https://forum.ansible.com/u/Divya_Vavili)\
**Post date:** [January 10, 2017, 8:36pm UTC](https://forum.ansible.com/t/when-to-use-static-vs-dynamic-task-include/23422/1 "2017-01-10T20:36:47Z")

</div>

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
