mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
FIX: multiple nested tasks include levels (#35165)
* Test for include_tasks & include_role bug Related to ansible/ansible:#21890 * Fix nested include_tasks called from role This fixes the path of included files when you want to call include_task inside a role's task file and this role is itself called from multiple level of playbook include_tasks Related to ansible/ansible:#21890 This fixes ansible/ansible:#35109
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
---
|
||||
testnesteddep2_defvar1: foobar
|
||||
testnesteddep2_varvar1: foobar
|
||||
@@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
- role: nested/nested/nested_dep_role2a
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
- include_tasks: ./rund.yml
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
- shell: echo from deprole2a
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
testnesteddep2_varvar1: muche
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
testnesteddep2_defvar1: foobar
|
||||
testnesteddep2_varvar1: foobar
|
||||
@@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
- role: nested/nested/nested_dep_role2b
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
- include_tasks: ./rune.yml
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
- shell: echo from deprole2
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
testnesteddep2_varvar1: muche
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
testnesteddep2_defvar1: foobar
|
||||
testnesteddep2_varvar1: foobar
|
||||
@@ -0,0 +1 @@
|
||||
dependencies: []
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
- include_tasks: ./runf.yml
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
- shell: echo from deprole2b
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
testnesteddep2_varvar1: muche
|
||||
Reference in New Issue
Block a user