mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-19 15:39:10 -07:00
Fixing broken patch 20957a1
Also adds integration tests for nested includes with conditionals
This commit is contained in:
parent
b0295af7ee
commit
783a1e3dfc
4 changed files with 14 additions and 4 deletions
|
@ -164,3 +164,11 @@
|
|||
- result.invocation.module_name == "debug"
|
||||
- result.msg == "this should be debugged"
|
||||
|
||||
- name: test conditional includes
|
||||
include: test_include_conditional.yml
|
||||
when: false
|
||||
|
||||
- name: assert the nested include from test_include_conditional was not set
|
||||
assert:
|
||||
that:
|
||||
- nested_include_var is undefined
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
- include: test_include_nested.yml
|
|
@ -0,0 +1,2 @@
|
|||
- name: set the nested include fact
|
||||
set_fact: nested_include_var=1
|
Loading…
Add table
Add a link
Reference in a new issue