mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
yum: cover "Nothing to do" not only for groups (#28283)
This commit is contained in:
parent
8a6e1531b7
commit
bcb9644f39
1 changed files with 2 additions and 5 deletions
|
@ -688,11 +688,8 @@ def exec_install(module, items, action, pkgs, res, yum_basecmd):
|
|||
res['msg'] += err
|
||||
res['changed'] = True
|
||||
|
||||
# special case for groups
|
||||
for spec in items:
|
||||
if spec.startswith('@'):
|
||||
if ('Nothing to do' in out and rc == 0) or ('does not have any packages to install' in err):
|
||||
res['changed'] = False
|
||||
if ('Nothing to do' in out and rc == 0) or ('does not have any packages to install' in err):
|
||||
res['changed'] = False
|
||||
|
||||
if rc != 0:
|
||||
res['changed'] = False
|
||||
|
|
Loading…
Reference in a new issue