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:
parent
f12695f287
commit
d0cfcdbc4d
9 changed files with 147 additions and 39 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue