diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2021-08-24 17:17:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-24 11:17:08 -0400 |
commit | 2ba9e35d09226f7c3664bf343f11043708a58997 (patch) | |
tree | cb528f478d5a98b900e069eabe6cafc42887011d /lib/ansible | |
parent | 3ca50a2200cba04b6fa82e27e485784cee011277 (diff) | |
download | ansible-2ba9e35d09226f7c3664bf343f11043708a58997.tar.gz |
yum: fix yumstate when wildcards are used in list arg (#75545)
Fixes #74557
* map is not available on centos 6's jinja...
Diffstat (limited to 'lib/ansible')
-rw-r--r-- | lib/ansible/modules/yum.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/modules/yum.py b/lib/ansible/modules/yum.py index 774cf95b69..6ece1d5160 100644 --- a/lib/ansible/modules/yum.py +++ b/lib/ansible/modules/yum.py @@ -599,6 +599,8 @@ class YumModule(YumDnf): rpmbin = self.module.get_bin_path('rpm', required=True) cmd = [rpmbin, '-q', '--qf', qf, pkgspec] + if '*' in pkgspec: + cmd.append('-a') if self.installroot != '/': cmd.extend(['--root', self.installroot]) # rpm localizes messages and we're screen scraping so make sure we use |