Skip to content
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

[2.15] fix handling allow_duplicates with the role cache (#82691) #82928

Merged
merged 1 commit into from Apr 10, 2024

Conversation

s-hertel
Copy link
Contributor

SUMMARY

Backport for #82691

allow_duplicates is not part of the role uniqueness, so the value on the cached role may not match the current role.

  • remove the allow_duplicates check from Role.has_run() which operates on the deduplicated role
  • check the current role's allow_duplicates value in the strategy

Co-authored-by: Martin Krizek martin.krizek@gmail.com
(cherry picked from commit b3d8cdd)

ISSUE TYPE
  • Bugfix Pull Request
ADDITIONAL INFORMATION

@ansibot ansibot added bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. backport This PR does not target the devel branch. labels Mar 28, 2024
allow_duplicates is not part of the role uniqueness, so the value on the cached role may not match the current role.

* remove the allow_duplicates check from Role.has_run() which operates on the deduplicated role
* check the current role's allow_duplicates value in the strategy

(cherry picked from commit b3d8cdd)

Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
@webknjaz

This comment was marked as resolved.

This comment was marked as resolved.

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Apr 4, 2024
@sivel sivel merged commit 12239ab into ansible:stable-2.15 Apr 10, 2024
81 checks passed
@sivel sivel removed the needs_triage Needs a first human triage before being processed. label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport This PR does not target the devel branch. bug This issue/PR relates to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants