# \- Include  Help. Include at start of playbook

**URL:** <https://forum.ansible.com/t/include-help-include-at-start-of-playbook/19375>\
**Category:** Ansible Project\
**Created:** [September 29, 2015, 8:41am UTC](https://forum.ansible.com/t/include-help-include-at-start-of-playbook/19375 "2015-09-29T08:41:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Kerr](https://avatars.discourse-cdn.com/v4/letter/c/59ef9b/32.png) [@Chris\_Kerr](https://forum.ansible.com/u/Chris_Kerr)\
**Post date:** [September 29, 2015, 8:41am UTC](https://forum.ansible.com/t/include-help-include-at-start-of-playbook/19375/1 "2015-09-29T08:41:54Z")

</div>

Hi all

I need some help with this.

What I require is the start of my elk playbook to call another playbook called (Katello)

Whenever i run the playbook with the include at the start - It Ignores any tasks underneath it and ends.  
I’ve tried this every which way and am at a loss.  
How can I get this to work?? Ive tried looking everywhere for Include Syntax and read ansible up and running but everywhere i read shows an include at the very end of a playbook.

In this example the register-katello playbook is run - but then thats it - I need it to continue on to the tasks underneath once complete.

`

- hosts: all

sudo: yes

- include: …/register\_katello/register-katello.yml

tasks:

- name: TEST  
shell: echo “TEST”  
`

---

<div class="post-metadata">

**Author:** ![igorc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/igorc/32/5491_2.png) [@igorc](https://forum.ansible.com/u/igorc)\
**Post date:** [September 29, 2015, 11:32pm UTC](https://forum.ansible.com/t/include-help-include-at-start-of-playbook/19375/2 "2015-09-29T23:32:49Z")

</div>

- hosts: all  
&nbsp;&nbsp;sudo: yes  
&nbsp;&nbsp;tasks:  
&nbsp;&nbsp;&nbsp;- include: ../register\_katello/register-katello.yml  
&nbsp;&nbsp;&nbsp;- name: TEST  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shell: echo "TEST"

---

<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:** [October 1, 2015, 3:34am UTC](https://forum.ansible.com/t/include-help-include-at-start-of-playbook/19375/3 "2015-10-01T03:34:25Z")

</div>

depends on what register-katello.yml contains, if it is a full play:

- include: ../register\_katello/register-katello.yml  
- hosts: all  
&nbsp;&nbsp;sudo: yes  
&nbsp;&nbsp;tasks:  
&nbsp;&nbsp;&nbsp;- name: TEST  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shell: echo "TEST"

if it is just a list of tasks, do as Igor shows.
