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
#
        
        
        #
        
        
        out = re.sub(r'\n[^\w]\W+(.*)', r' \1', check_update_output)
        available_updates = out.split('\n')
        
        for line in available_updates:
            line = line.split()
            
            
            
            
            
            #
            
            if '*' in line or len(line) not in [3, 6] or '.' not in line[0]:
                continue
            else:
                pkg, version, repo = line[0], line[1], line[2]
                name, dist = pkg.rsplit('.', 1)
                updates.update({name: {'version': version, 'dist': dist, 'repo': repo}})
                if len(line) == 6:
                    obsolete_pkg, obsolete_version, obsolete_repo = line[3], line[4], line[5]
                    obsolete_name, obsolete_dist = obsolete_pkg.rsplit('.', 1)
                    obsoletes.update({obsolete_name: {'version': obsolete_version, 'dist': obsolete_dist, 'repo': obsolete_repo}})
        return updates, obsoletes
    def latest(self, items, repoq):