# Yum update with ansible

**URL:** <https://forum.ansible.com/t/yum-update-with-ansible/22263>\
**Category:** Ansible Project\
**Created:** [August 10, 2016, 12:47pm UTC](https://forum.ansible.com/t/yum-update-with-ansible/22263 "2016-08-10T12:47:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leandro\_Gomes](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@Leandro\_Gomes](https://forum.ansible.com/u/Leandro_Gomes)\
**Post date:** [August 10, 2016, 12:47pm UTC](https://forum.ansible.com/t/yum-update-with-ansible/22263/1 "2016-08-10T12:47:22Z")

</div>

How can I update a Redhat or Centos Server using yum module keeping the release version ?

In my tests with update \* the server goes from 6.5 to 6.8 relase, when I want to keep in the 6.5 relase.

In the command line in normal way we execute **yum releasever=6.5 update**
