mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07: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:
parent
269d682f70
commit
cca96b8c9d
7 changed files with 20 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue