mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Pass vars from import_playbook in early (#39521)
* Pass vars from import_playbook in early, as they may be needed to parse the imported plays. Fixes #33693 * Add test for import_playbook vars
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
---
|
||||
- hosts: testhost
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- import_role:
|
||||
name: "{{ import_playbook_role_name }}"
|
||||
@@ -0,0 +1,2 @@
|
||||
- debug:
|
||||
msg: in import_playbook_role
|
||||
@@ -14,3 +14,7 @@
|
||||
when: include_next_playbook
|
||||
|
||||
- import_playbook: validate34.yml
|
||||
|
||||
- import_playbook: playbook_needing_vars.yml
|
||||
vars:
|
||||
import_playbook_role_name: import_playbook_role
|
||||
|
||||
Reference in New Issue
Block a user