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
Avoid roles exporting vars: #69040
Open
bcoca
wants to merge
1
commit into
ansible:devel
Choose a base branch
from
bcoca:rv_fix
base: devel
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Avoid roles exporting vars: #69040
+457
−30
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jimi-c
approved these changes
Apr 27, 2020
I think generally speaking, I am in favor of this. However...isn't this technically a backwards incompatible change? Might users now be relying on this behavior? |
This comment has been minimized.
This comment has been minimized.
@sivel, it is, but i'm mapping the different cases to see the level of impact |
This comment has been minimized.
This comment has been minimized.
s-hertel
reviewed
Jun 22, 2022
s-hertel
approved these changes
Jun 23, 2022
s-hertel
reviewed
Jun 23, 2022
- correct 'vars:' precedence to allow phasing out of include_params - actually merge vars and always include role_vars - avoided dupe deps from giving wrong vars - use 'first' instance of dep as others are from previous instances/invocations and can have diff values for vars - ensured deps only provide exportable vars themselves - added COMMENTS - added tests - apply export restrictions setting to defaults - use 'public' as cutoff Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> ci_complete
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects_2.14
bug
This issue/PR relates to a bug.
collection
Related to Ansible Collections work
core_review
In order to be merged, this PR must follow the core review workflow.
has_issue
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
support:community
This issue/PR relates to code supported by the Ansible community.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
also correct vars: precedence to allow phasing out of include_params
Fixes #47606
Fixes #36274
Fixes #15243
ISSUE TYPE
COMPONENT NAME
roles