2015-03-03 21:59:23 +01:00
|
|
|
- hosts: all
|
2015-02-26 16:51:12 +01:00
|
|
|
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
|
2015-03-03 21:59:23 +01:00
|
|
|
- include: "{{inventory_hostname}}_include.yml"
|
2015-02-26 16:51:12 +01:00
|
|
|
- fail:
|
|
|
|
|
2015-03-03 21:59:23 +01:00
|
|
|
rescue:
|
|
|
|
- include: include.yml a=rescue
|
2015-02-26 16:51:12 +01:00
|
|
|
|
|
|
|
always:
|
|
|
|
- include: include.yml a=always
|
|
|
|
|
2015-03-25 19:51:40 +01:00
|
|
|
#handlers:
|
2015-03-04 20:26:17 +01:00
|
|
|
#- name: foo
|
|
|
|
# include: include.yml a="this is a handler"
|
2015-02-26 16:51:12 +01:00
|
|
|
|