# Ansible tag with include

**URL:** <https://forum.ansible.com/t/ansible-tag-with-include/25176>\
**Category:** Ansible Project\
**Created:** [August 3, 2017, 5:05pm UTC](https://forum.ansible.com/t/ansible-tag-with-include/25176 "2017-08-03T17:05:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tailorpreet](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@tailorpreet](https://forum.ansible.com/u/tailorpreet)\
**Post date:** [August 3, 2017, 5:05pm UTC](https://forum.ansible.com/t/ansible-tag-with-include/25176/1 "2017-08-03T17:05:35Z")

</div>

With latest Ansible 2.3.1, I was not able to use tags with include statemenet

my code looks like this

ansible-playbook -i inventories/app.inventory -v -e “host=resource” test.yml

and heres test.yml.

- include: pipe.yml tags=upgrade source\_file=pipe\_list.txt

Thanks

---

<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:** [August 3, 2017, 9:10pm UTC](https://forum.ansible.com/t/ansible-tag-with-include/25176/2 "2017-08-03T21:10:28Z")

</div>

You test.yml is not a valid playbook, so you should have a error message indicating that.
