mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
451 B
YAML
25 lines
451 B
YAML
10 years ago
|
- hosts: all
|
||
10 years ago
|
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
|
||
10 years ago
|
- include: "{{inventory_hostname}}_include.yml"
|
||
10 years ago
|
- fail:
|
||
|
|
||
10 years ago
|
rescue:
|
||
|
- include: include.yml a=rescue
|
||
10 years ago
|
|
||
|
always:
|
||
|
- include: include.yml a=always
|
||
|
|
||
10 years ago
|
#handlers:
|
||
10 years ago
|
#- name: foo
|
||
|
# include: include.yml a="this is a handler"
|