- Include Help. Include at start of playbook

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”
    `

- hosts: all
  sudo: yes
  tasks:
   - include: ../register_katello/register-katello.yml
   - name: TEST
     shell: echo "TEST"

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

- include: ../register_katello/register-katello.yml
- hosts: all
  sudo: yes
  tasks:
   - name: TEST
     shell: echo "TEST"

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