summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/include.yml
blob: 559672892e0c3577c8069d958a5e603ec9464017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
- hosts: bobbins

  pre_tasks:
    - ansible.builtin.include_tasks: tasks/x.yml

  roles:
    - hello
    - { role: more_complex, t: z }

  tasks:
    - ansible.builtin.include_tasks: tasks/x.yml
    - ansible.builtin.include_tasks: tasks/x.yml y=z

  handlers:
    - ansible.builtin.include_tasks: handlers/y.yml

- ansible.builtin.include_tasks: play.yml