summaryrefslogtreecommitdiff
path: root/samples/test_include.yml
blob: 60befd9911d50df108cd7d6a479df399bb904965 (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
25
- 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"