mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fixing broken patch 20957a1
Also adds integration tests for nested includes with conditionals
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user