summaryrefslogtreecommitdiffstats
path: root/test/samples/test_include.yml
blob: 97407b13b2c8e53d449180fa10ada6452c0427fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
- hosts: all
  gather_facts: no
  tasks:
  - block:
    - include: include.yml a=1
      when: 1 == 1
      notify: foo
    - include: include.yml a={{item}}
      with_items:
      - foo
      - bar
      - bam
    - include: "{{inventory_hostname}}_include.yml"
    - fail:

    rescue:
    - include: include.yml a=rescue

    always:
    - include: include.yml a=always

  #handlers:
  #- name: foo
  #  include: include.yml a="this is a handler"