-
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
included include_role fails to escalate since ebf971f #35065
Comments
@kiorky Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information. Here are the items we could not find in your description:
Please set the description of this issue with this template: |
cc @jimi-c |
I wanted to take a moment, and update this issue with our plans for this issue. We are going to work on a change for the 2.4.3 release, that will maintain the recursion fix, but revert the previous behavior to allow some of the attributes to Our plan for 2.5 currently, is to leave the functionality as is. The reason for this decision and disparity between releases is due to the fact that it was never intended for |
@sivel @abadger im not sure that will be the proper way to go as you then can't escalate a role that doesnt explictly "becomes" itself, like the test case i gave and is pretty inintuitive. You can't then run a task somewhere that does: - include_role: {name: foo}
become: true and expect Idem for the when statements, this defeats and breaks completly the initial use of include_role. |
I'm also begging for a long time for your input on my #32565 PR, if someone can make things go a little bit further ;-) |
in 2.5, None. |
This refs: ansible#35065 This fixes: ansible#33922 This fixes: ansible#23609
Really, the more i think to this, the more i think that for the special case of the This will be in other case disastrous in term of usability of - include_role: {name: foo}
vars: {somevar: true} and also patch all the underlying, naive roles, that dont escalate themselves up to support escalating from the upper role by reacting on that # foo/tasks/main.yml
- become: "{{somevar}}"
shell: foobar This also dismiss the ability to reuse roles that is not under the OP control, as he wont be able to patch the So, we seem there to be in an impasse. |
This refs: ansible#35065 This fixes: ansible#33922 This fixes: ansible#23609
This refs: ansible#35065 This fixes: ansible#33922 This fixes: ansible#23609
This refs: ansible#35065 This fixes: ansible#33922 This fixes: ansible#23609
This refs: ansible#35065 This fixes: ansible#33922 This fixes: ansible#23609
We have restored behavior for 2.4, 2.5 will not inherit. Docs are in place for this. I'm proceeding with closing this issue. If you have further questions please stop by IRC or the mailing list:
|
It is still a BIG UX bug (one of those than can make users like me stop using ansible)... |
cc @abadger |
We agreed that there is really a bug, as the third form in https://github.com/kiorky/ansible_test_cases/tree/35065b should already work to escalate a role from the caller |
This refs: ansible#35065 This fixes: ansible#33922 This fixes: ansible#23609
This refs: ansible#35065 This fixes: ansible#33922 This fixes: ansible#23609
This refs: ansible#35065 This fixes: ansible#33922 This fixes: ansible#23609
This refs: ansible#35065 This fixes: ansible#33922 This fixes: ansible#23609
This refs: ansible#35065 This fixes: ansible#33922 This fixes: ansible#23609
ISSUE TYPE
COMPONENT NAME
include_role
ANSIBLE VERSION
OS / ENVIRONMENT
SUMMARY
Related to #33922 & #32565
The text was updated successfully, but these errors were encountered: