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:
Matt Martz
2018-04-30 16:13:43 -05:00
committed by GitHub
parent 269d682f70
commit cca96b8c9d
7 changed files with 20 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
---
- hosts: testhost
gather_facts: no
tasks:
- import_role:
name: "{{ import_playbook_role_name }}"

View File

@@ -0,0 +1,2 @@
- debug:
msg: in import_playbook_role

View File

@@ -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