yum_versionlock: fix idempotency when using wildcard (asterisk) (#2787) (#2896)

* Check idempotency on yum_versionlock

* Lock packages wildcard

* fix formatting

Co-authored-by: Felix Fontein <felix@fontein.de>

* Fix formatting in asserts

* little closer but not still there

* Import fnmatch

* Change check_mode logic

* Add check_mode for add

* Add changelog

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 0a9cf38118)

Co-authored-by: Amin Vakil <info@aminvakil.com>
This commit is contained in:
patchback[bot]
2021-06-27 17:00:05 +02:00
committed by GitHub
parent f74756d7fc
commit 1e848c56f2
3 changed files with 32 additions and 14 deletions

View File

@@ -0,0 +1,3 @@
---
bugfixes:
- yum_versionlock - fix idempotency when using wildcard (asterisk) in ``name`` option (https://github.com/ansible-collections/community.general/issues/2761).