# upgrade to a specific centos version

**URL:** <https://forum.ansible.com/t/upgrade-to-a-specific-centos-version/20725>\
**Category:** Ansible Project\
**Created:** [March 1, 2016, 4:32pm UTC](https://forum.ansible.com/t/upgrade-to-a-specific-centos-version/20725 "2016-03-01T16:32:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_M](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@J\_M](https://forum.ansible.com/u/J_M)\
**Post date:** [March 1, 2016, 4:32pm UTC](https://forum.ansible.com/t/upgrade-to-a-specific-centos-version/20725/1 "2016-03-01T16:32:25Z")

</div>

Hello,

I’m trying to use Ansible to upgrade my image from 6.5 to 6.6 using the following line. It’s ignoring the enable/disable lines and trying to upgrade to 6.7 is there a way to get the “latest” 6.6?

yum: name=\* disablerepo=C6.7\* enablerepo=C6.6\* state=latest  
when: ansible\_distribution == “CentOS”\

Thanks in advance.
