Im working on a project with several versions each version has it's own 
revision in the repo

Example:
fooproject-2.2.1-r4000.rpm
fooproject-2.2.1-r4005.rpm
fooproject-3.0.1-r4015.rpm

There's a server on version 2 rev 4000

doing the command-> yum install fooproject*2.2.1*
it will install -> fooproject-2.2.1-r4005.rpm


now on ansible I created a task that does:

- name: Update fooproject revision
  yum: 
    name: fooproject*{{ foo_version }}*
    state: present

this will say that the server (in rev4000) is on the latest version 


already tried 

- name: Update fooproject revision
  yum: 
    name: fooproject*{{ foo_version }}*
    state: latest

and it will install version 3


Workaround at the moment:

Im using 
command: yum install

Is there a way to use the yum module for this case?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ca5a0878-8b9b-4ed0-b4d4-bebafb7a9f5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to