# Non-task Includes

**URL:** <https://forum.ansible.com/t/non-task-includes/17379>\
**Category:** Ansible Project\
**Created:** [January 27, 2015, 12:55am UTC](https://forum.ansible.com/t/non-task-includes/17379 "2015-01-27T00:55:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![baldwin\_wong](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@baldwin\_wong](https://forum.ansible.com/u/baldwin_wong)\
**Post date:** [January 27, 2015, 12:55am UTC](https://forum.ansible.com/t/non-task-includes/17379/1 "2015-01-27T00:55:31Z")

</div>

→ % cat playbook1.yml

- hosts: 127.0.0.1  
gather\_facts: false

tasks:

- name: Task1  
shell: echo “This is Task1”

- include: playbook2.yml tags=play2

→ % cat playbook2.yml

- hosts: 127.0.0.1  
gather\_facts: false

tasks:

- name: Task2  
shell: echo “This is Task2”

- include: playbook3.yml tags=play3

→ % cat playbook3.yml

- hosts: 127.0.0.1  
gather\_facts: false

tasks:

- name: Task3  
shell: echo “This is Task3”

→ %

→ % ansible-playbook playbook1.yml -t ‘play2’  
ERROR: tag(s) not found in playbook: play2. possible values:

Hi,

In some devel version of 1.8 I was able to run this play with no problem.  
Now I am unable to do it this way due to the changes.  
Since most of our plays are built this way… is there a way to call playbooks within playbooks with a tag?  
If not, what would the best way to fix this problem?

---

<div class="post-metadata">

**Author:** ![Henning\_Eggers](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@Henning\_Eggers](https://forum.ansible.com/u/Henning_Eggers)\
**Post date:** [January 29, 2015, 2:48pm UTC](https://forum.ansible.com/t/non-task-includes/17379/2 "2015-01-29T14:48:00Z")

</div>

I think this functionality has been moved to roles. You can call roles with tags and I think also call dependency roles with tags.

Henning
