# Install package for point release

**URL:** <https://forum.ansible.com/t/install-package-for-point-release/23344>\
**Category:** Ansible Project\
**Created:** [December 29, 2016, 10:05am UTC](https://forum.ansible.com/t/install-package-for-point-release/23344 "2016-12-29T10:05:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Csuka1](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@Kevin\_Csuka1](https://forum.ansible.com/u/Kevin_Csuka1)\
**Post date:** [December 29, 2016, 10:05am UTC](https://forum.ansible.com/t/install-package-for-point-release/23344/1 "2016-12-29T10:05:24Z")

</div>

Actual package name in the repo is `package-2.6.12-3.el7.x86_64`.

The goal is to install a package with Ansible, to:

- 
  - Ensure the point release is installed, such as package-2.2

- 
  - Doesn’t install major releases, such as package-3.0

- 
  - Updates for minor releases, such as package-2.6.13-4

The repo can update packages from time to time, but I don’t know when.

My thought was to install a package like this;

```auto
- name: Install package
  yum:
    name: package-2.6
    state: present

```

But the task fails, because `package-2.6` is not in the repo. Whereas simply `package` works, but it not future proof.

How do I achieve this?

---

<div class="post-metadata">

**Author:** ![Kevin\_Csuka1](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@Kevin\_Csuka1](https://forum.ansible.com/u/Kevin_Csuka1)\
**Post date:** [December 30, 2016, 7:51am UTC](https://forum.ansible.com/t/install-package-for-point-release/23344/2 "2016-12-30T07:51:05Z")

</div>

Any epic guru’s?

---

<div class="post-metadata">

**Author:** ![Kevin\_Csuka1](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@Kevin\_Csuka1](https://forum.ansible.com/u/Kevin_Csuka1)\
**Post date:** [January 3, 2017, 8:05am UTC](https://forum.ansible.com/t/install-package-for-point-release/23344/3 "2017-01-03T08:05:21Z")

</div>

Someone?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [January 3, 2017, 10:43am UTC](https://forum.ansible.com/t/install-package-for-point-release/23344/4 "2017-01-03T10:43:58Z")

</div>

Since yum need the complete version number "yum update package-2.6.13" you'll need to provide that in Ansible as well.

So to make this work you would need to run a script or a creative one liner in command or the shell module.

---

<div class="post-metadata">

**Author:** ![Kevin\_Csuka1](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@Kevin\_Csuka1](https://forum.ansible.com/u/Kevin_Csuka1)\
**Post date:** [January 4, 2017, 12:18pm UTC](https://forum.ansible.com/t/install-package-for-point-release/23344/5 "2017-01-04T12:18:37Z")

</div>

Dang, thought you could come up with a solution 🙂  
You’re an expert.

But thanks for the reply. I’ll find my way and create something creative.
