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
pkgs = self.names
        
        if not self.names and self.autoremove:
            pkgs = []
            self.state = 'absent'
        if self.conf_file and os.path.exists(self.conf_file):
            self.yum_basecmd += ['-c', self.conf_file]
            if repoq:
                repoq += ['-c', self.conf_file]
        if self.skip_broken:
            self.yum_basecmd.extend(['--skip-broken'])
        if self.disablerepo:
            self.yum_basecmd.extend(['--disablerepo=%s' % ','.join(self.disablerepo)])
        if self.enablerepo:
            self.yum_basecmd.extend(['--enablerepo=%s' % ','.join(self.enablerepo)])
        if self.enable_plugin:
            self.yum_basecmd.extend(['--enableplugin', ','.join(self.enable_plugin)])
        if self.disable_plugin:
            self.yum_basecmd.extend(['--disableplugin', ','.join(self.disable_plugin)])
        if self.exclude:
            e_cmd = ['--exclude=%s' % ','.join(self.exclude)]
            self.yum_basecmd.extend(e_cmd)
        if self.disable_excludes:
            self.yum_basecmd.extend(['--disableexcludes=%s' % self.disable_excludes])
        if self.download_only:
            self.yum_basecmd.extend(['--downloadonly'])
            if self.download_dir:
                self.yum_basecmd.extend(['--downloaddir=%s' % self.download_dir])
        if self.installroot != '/':