mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-29 23:49:09 +00:00
Moving samples/ out of the root into test/
Since samples/ is used for v2 testing, it fits better into the existing test/ structure.
This commit is contained in:
parent
cc0d58abcc
commit
5775739437
69 changed files with 0 additions and 0 deletions
25
test/samples/test_include.yml
Normal file
25
test/samples/test_include.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
- hosts: all
|
||||
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
|
||||
- include: "{{inventory_hostname}}_include.yml"
|
||||
- fail:
|
||||
|
||||
rescue:
|
||||
- include: include.yml a=rescue
|
||||
|
||||
always:
|
||||
- include: include.yml a=always
|
||||
|
||||
#handlers:
|
||||
#- name: foo
|
||||
# include: include.yml a="this is a handler"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue