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
namepass = namepass + self.yum_base.conf.proxy_username
                    proxy_url = self.yum_base.conf.proxy
                    if self.yum_base.conf.proxy_password:
                        namepass = namepass + ":" + self.yum_base.conf.proxy_password
                elif '@' in self.yum_base.conf.proxy:
                    namepass = self.yum_base.conf.proxy.split('@')[0].split('//')[-1]
                    proxy_url = self.yum_base.conf.proxy.replace("{0}@".format(namepass), "")
                if namepass:
                    namepass = namepass + '@'
                    for item in scheme:
                        os.environ[item + "_proxy"] = re.sub(
                            r"(http://)",
                            r"\g<1>" + namepass, proxy_url
                        )
                else:
                    for item in scheme:
                        os.environ[item + "_proxy"] = self.yum_base.conf.proxy
            yield
        except yum.Errors.YumBaseError:
            raise
        finally:
            
            for item in scheme:
                if os.getenv("{0}_proxy".format(item)):
                    del os.environ["{0}_proxy".format(item)]
            if old_proxy_env[0]:
                os.environ["http_proxy"] = old_proxy_env[0]
            if old_proxy_env[1]:
                os.environ["https_proxy"] = old_proxy_env[1]
    def pkg_to_dict(self, pkgstr):