-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import_role & include_role do not process variables in parameters #32503
Comments
Files identified in the description: If these files are inaccurate, please update the |
It also does not work with ansible-defined variables.
OS: mac OS X high sierra 10.13.1
Invariably returns a:
Note: this can be circumvented by making use of the dynamic include at the role-level, instead of the playbook-level. |
I think #32565 may fix your bug which seems related to #21890 On my fork, you have two branchs for you: Pristine 2.5+the PR #32565 commits: https://github.com/corpusops/ansible/tree/devel |
possibly related #36372 |
According to my testing, this is fixed ...
|
I don't see any integration tests that cover this usage pattern, so leaving this open till those are done. |
This is working in |
Hi all, Any one aware of any workarounds until this is all ready? |
@samdoran import_X won't work with host vars, include_X must be used in those cases. |
I removed the |
Closing now that we have integration tests for this use case. |
ISSUE TYPE
COMPONENT NAME
include_role, import_role
ANSIBLE VERSION
CONFIGURATION
None
OS / ENVIRONMENT
Mac OS 10.10.5
SUMMARY
Using a variable in
tasks_from
in aninclude_role
orimport_role
task is not recognized and interpreted.STEPS TO REPRODUCE
EXPECTED RESULTS
With the
my_action
var set thru the extra vars, the corresponding task file in the role would be executed.ACTUAL RESULTS
Error message that the task file cannot be found.
The text was updated successfully, but these errors were encountered: