# What parameters are possible for "include"?

**URL:** <https://forum.ansible.com/t/what-parameters-are-possible-for-include/20337>\
**Category:** Ansible Project\
**Created:** [January 25, 2016, 1:00pm UTC](https://forum.ansible.com/t/what-parameters-are-possible-for-include/20337 "2016-01-25T13:00:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![t.hirsch](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@t.hirsch](https://forum.ansible.com/u/t.hirsch)\
**Post date:** [January 25, 2016, 1:00pm UTC](https://forum.ansible.com/t/what-parameters-are-possible-for-include/20337/1 "2016-01-25T13:00:38Z")

</div>

Hello,  
when I want to include another file, which includes a list of tasks, what parameters are possible to pas to the include to have them forwarded to the task? For example, I set “tags” when including something, maybe to reduce some duplication. How can I know which parameters can work and which don’t. For example “remote\_user”, “become”, “become\_user” etc. Is there a place where there is a synopsis of the include command? Or am I supposed to read the code, which I haven’t yet.

Thanks for help ad regards,

Thomas

---

<div class="post-metadata">

**Author:** ![t.hirsch](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@t.hirsch](https://forum.ansible.com/u/t.hirsch)\
**Post date:** [January 25, 2016, 1:26pm UTC](https://forum.ansible.com/t/what-parameters-are-possible-for-include/20337/2 "2016-01-25T13:26:55Z")

</div>

To clarify, I am looking for a good general way to reuse tasks in different context (for example with different “ansible\_user”, different “become\_user” …) without explicitly giving defaults at all times. I understand there is a tradeoff here, but the question is really, what’s the best way to find out?

\*\* some\_task.yml \*\*  
`

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [January 25, 2016, 7:27pm UTC](https://forum.ansible.com/t/what-parameters-are-possible-for-include/20337/3 "2016-01-25T19:27:59Z")

</div>

The inline mode is only for vars, not directives:

- include: some-task.yml  
&nbsp;&nbsp;become: "{{ mybecome}}"  
&nbsp;&nbsp;become\_user: "{{ mybecome\_user }}"

Also naming vars the same as directives can lead to confusion.

---

<div class="post-metadata">

**Author:** ![t.hirsch](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@t.hirsch](https://forum.ansible.com/u/t.hirsch)\
**Post date:** [January 26, 2016, 8:55am UTC](https://forum.ansible.com/t/what-parameters-are-possible-for-include/20337/4 "2016-01-26T08:55:50Z")

</div>

Thank you! Can you point me to the documentation somewhere, where this is clarified?
