Yum install latest should take into consideration of release numbers

Hi all,

I have a situation where I have to resort to using the shell instead of yum module:

[root@qa-s1-sm1 ansible]# ansible localhost -c local -m yum -a “name=myrpm-db1.5.1 state=latest enablerepo=repo-Snapshots disablerepo=*”
localhost | success >> {
“changed”: false,
“msg”: “”,
“rc”: 0,
“results”: [
“All packages providing myrpm-db1.5.1 are up to date”
]
}

[root@qa-s1-sm1 ansible]# yum --disablerepo=* --enablerepo=repo-Snapshots install myrpm-db1.5.1
Loaded plugins: fastestmirror, keys, presto, s3
Setting up Install Process
Loading mirror speeds from cached hostfile
repo-Snapshots | 1.5 kB 00:00
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
→ Running transaction check
—> Package myrpm-db1.5.1.noarch 0:2.5-SNAPSHOT20161010192219 will be updated
—> Package myrpm-db1.5.1.noarch 0:2.5-SNAPSHOT20161107224803 will be an update
→ Finished Dependency Resolution

Dependencies Resolved