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
rc, out, err = self.module.run_command(cmd, environ_update=lang_env)
        if rc == 1:
            for spec in items:
                
                if ('://' in spec and ('No package %s available.' % spec in out or 'Cannot open: %s. Skipping.' % spec in err)):
                    err = 'Package at %s could not be installed' % spec
                    self.module.fail_json(changed=False, msg=err, rc=rc)
        res['rc'] = rc
        res['results'].append(out)
        res['msg'] += err
        res['changed'] = True
        if ('Nothing to do' in out and rc == 0) or ('does not have any packages' in err):
            res['changed'] = False
        if rc != 0:
            res['changed'] = False
            self.module.fail_json(**res)
        
        
        
        
        
        if 'No space left on device' in (out or err):
            res['changed'] = False
            res['msg'] = 'No space left on device'
            self.module.fail_json(**res)
        
        
        
        return res
    def install(self, items, repoq):