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

[PR #6861/2bf85cca backport][stable-7] feature(yum_versionlock): add support to pin specific package versions #6920

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Jul 12, 2023

This is a backport of PR #6861 as merged into main (2bf85cc).

feature(yum_versionlock): add support to pin specific package versions

SUMMARY

Adjusted yum_versionlock (as requested in #4470) to handle version suffixes in a correct way to avoid wrong change results. This will validate and handle the following cases:

  • package name like: httpd
  • package name and version like: httpd-0:2.4.57-3.el9

Fixes #4470

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

yum_versionlock

ADDITIONAL INFORMATION

@tedgin & @matt-horwood-mayden as you requested this change, please feel free to test.

Before:

[gyptazy@localhost ansible]# ansible-playbook playbooks/yum_versionlock.yml 

PLAY [yum versionlock] ***************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [lock iCommands to version 4.2.8] ***********************************************************************************************************************************************************************************************************
changed: [localhost]

PLAY RECAP ***************************************************************************************************************************************************************************************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

After:

[gyptazy@localhost ansible]# ansible-playbook playbooks/yum_versionlock.yml 

PLAY [yum versionlock] ***************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [lock iCommands to version 4.2.8] ***********************************************************************************************************************************************************************************************************
ok: [localhost]

PLAY RECAP ***************************************************************************************************************************************************************************************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0 

#6861)

feature(yum_versionlock): add support to pin specific package versions instead of only the package itself

(cherry picked from commit 2bf85cc)
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added backport feature This issue/PR relates to a feature request module module needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR new_contributor Help guide this first time contributor plugins plugin (any type) and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Jul 12, 2023
@felixfontein felixfontein merged commit 0a1b53a into stable-7 Jul 13, 2023
@felixfontein felixfontein deleted the patchback/backports/stable-7/2bf85cca518ed61dfa38a96c1d510ba1f49f10e8/pr-6861 branch July 13, 2023 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request module module new_contributor Help guide this first time contributor plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants