# using include

**URL:** <https://forum.ansible.com/t/using-include/25923>\
**Category:** Ansible Project\
**Created:** [November 3, 2017, 8:35pm UTC](https://forum.ansible.com/t/using-include/25923 "2017-11-03T20:35:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laks](https://avatars.discourse-cdn.com/v4/letter/l/f1d935/32.png) [@Laks](https://forum.ansible.com/u/Laks)\
**Post date:** [November 3, 2017, 8:35pm UTC](https://forum.ansible.com/t/using-include/25923/1 "2017-11-03T20:35:00Z")

</div>

Using include option I called another playbook based on the when condition.  
when executed, i see called playbook executing but skipping the tasks from it.

Please help.

Thanks,  
Laks

---

<div class="post-metadata">

**Author:** ![Laks](https://avatars.discourse-cdn.com/v4/letter/l/f1d935/32.png) [@Laks](https://forum.ansible.com/u/Laks)\
**Post date:** [November 3, 2017, 8:35pm UTC](https://forum.ansible.com/t/using-include/25923/2 "2017-11-03T20:35:27Z")

</div>

BTW,

i am using Ansible 2.2 version.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [November 3, 2017, 9:34pm UTC](https://forum.ansible.com/t/using-include/25923/3 "2017-11-03T21:34:46Z")

</div>

That is just how when works.  
when is added to each task in the included file and each tasks when is evaluated to see if the task should be executed.
