mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Fix include in loop when stategy=free (#33094)
This commit is contained in:
parent
e65ef09aa9
commit
3a2a1e054f
5 changed files with 20 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
- set_fact:
|
||||
inner: "reached"
|
|
@ -0,0 +1,6 @@
|
|||
- name: this needs to be here
|
||||
debug:
|
||||
msg: "hello"
|
||||
- include: inner.yml
|
||||
with_items:
|
||||
- '1'
|
9
test/integration/targets/includes/test_include_free.yml
Normal file
9
test/integration/targets/includes/test_include_free.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
- hosts: testhost
|
||||
gather_facts: no
|
||||
strategy: free
|
||||
roles:
|
||||
- test_includes_free
|
||||
tasks:
|
||||
- assert:
|
||||
that:
|
||||
- "inner == 'reached'"
|
|
@ -1,3 +1,5 @@
|
|||
- include: test_includes2.yml parameter1=asdf parameter2=jkl
|
||||
|
||||
- include: test_includes3.yml
|
||||
|
||||
- include: test_include_free.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue