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