1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-07-08 19:49:09 +00:00

Getting dynamic includes working a bit better on v2

This commit is contained in:
James Cammarata 2015-03-03 14:59:23 -06:00
parent f12695f287
commit d0cfcdbc4d
9 changed files with 147 additions and 39 deletions

View file

@ -1,9 +1,7 @@
- hosts: localhost
- hosts: all
gather_facts: no
tasks:
- block:
- include: include.yml
when: 1 == 2
- include: include.yml a=1
when: 1 == 1
notify: foo
@ -12,10 +10,11 @@
- foo
- bar
- bam
- include: "{{inventory_hostname}}_include.yml"
- fail:
#rescue:
#- include: include.yml a=rescue
rescue:
- include: include.yml a=rescue
always:
- include: include.yml a=always