When to use static vs dynamic task include

31 views
Skip to first unread message

Divya Vavili

unread,
Jan 11, 2017, 10:19:16 AM1/11/17
to Ansible Project
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: <taskfile>
   
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 <taskfile>. Please let me know what is the correct behavior here. 

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

Thanks,
Divya
Reply all
Reply to author
Forward
0 new messages