I am using the yum module to lock the release version for a RHEL 7.6 machine to 7.7 version. However the yum --releasever option does not set the release version to 7.7. I am using Ansible 2.7.10 version.
Here is the discussion regarding the issue: 
https://access.redhat.com/discussions/4774501

ISSUE TYPE
Bug Report

COMPONENT NAME
yum --releasever

ANSIBLE VERSION
2.7.10 

STEPS TO REPRODUCE
name: installing updated packages
yum:
name: '*'
state: latest
releasever: '7.7'

ACTUAL RESULTS
Play runs successfully however it does not update the release version of the server
if pkgstr.strip() and pkgstr.count('|') == 5:
            n, e, v, r, a, repo = pkgstr.split('|')
        else:
            return {'error_parsing': pkgstr}
        d = {
            'name': n,
            'arch': a,
            'epoch': e,
            'release': r,
            'version': v,
            'repo': repo,
            'envra': '%s:%s-%s-%s.%s' % (e, n, v, r, a)
        }
        if repo == 'installed':
            d['yumstate'] = 'installed'
        else:
            d['yumstate'] = 'available'
        return d
    def repolist(self, repoq, qf="%{repoid}"):
        cmd = repoq + ["--qf", qf, "-a"]
        rc, out, _ = self.module.run_command(cmd)
        if rc == 0:
            return set(p for p in out.split('\n') if p.strip())
        else:
            return []
    def list_stuff(self, repoquerybin, stuff):