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
commit cca96b8c9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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