Thanks Kai. On Friday, September 22, 2017 at 8:30:56 AM UTC+1, Kai Stian Olstad wrote: > > On 21.09.2017 18:55, Rui Goncalves wrote: > > I'd like to install or update a package specifying the major.minor > > version. I.e, upgrade only if there's a bugfix package available. I've > > tried using state=*latest* and *present*, but does not work as I > > expected. > > > > Using: yum: name=nginx-debuginfo-1.6* state=latest > >> Suffix "-1.6*" is ignored, and version nginx-debuginfo-1.10 (which is > >> the > > latest available version on the repo) gets installed. I want to remain > > on > > 1.6.* version. > > > > Using: yum: name=nginx-debuginfo-1.6* state=present > >> If the host already contains nginx-debuginfo-1.6.1 installed and > >> there's > > a new version nginx-debuginfo-1.6.2 available on the repo, the package > > is > > not updated. > > As you have experienced yum doesn't support this, you should look into > yum versionlock. > > > -- > Kai Stian Olstad >
-- 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/4d25c5a2-dbb3-4081-81d6-6ecb1bbc5b4e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
