##### SUMMARY
Happened here: https://github.com/ansible-collections/community.general/pull/341

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
ansible-test

##### ANSIBLE VERSION
```paste below
devel
```

matches = fnmatch.filter(pkg_name_cache, pkgname_pattern)
                if not matches:
                    m.fail_json(msg="No package(s) matching '%s' available" % str(pkgname_pattern))
                else:
                    new_pkgspec.extend(matches)
            else:
                # No 
                new_pkgspec.append(pkgspec_pattern)
    return new_pkgspec
def parse_diff(output):
    diff = to_native(output).splitlines()
    try:
        # ch
        diff_start = diff.index('Resolving dependencies...')
    except ValueError:
        try:
            # ch
            diff_start = diff.index('Reading state information...')
        except ValueError:
            # sh
            diff_start = -1
    try:
        # ch
        diff_end = next(i for i, item in enumerate(diff) if re.match('[0-9]+ (packages )?upgraded', item))
    except StopIteration:
        diff_end = len(diff)
    diff_start += 1
    diff_end += 1
    return {'prepared': '\n'.join(diff[diff_start:diff_end])}
def mark_installed_manually(m, packages):