Re: [ansible-project] Using yum module to install/update to defined version of a package-X.

2017-09-22 Thread Rui Goncalves
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

[ansible-project] Using yum module to install/update to defined version of a package-X.

2017-09-21 Thread Rui Goncalves
Hi all. 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

[ansible-project] Re: Ansible best practice

2017-01-31 Thread Rui Goncalves
ting your own roles and use the above or jump > start your own roles based on the above. > > To answer your question, it looks cleaner if you split into multiple roles > instead of polluting the Prometheus role with something which is not a hard > dependency. > > Regards, &g

[ansible-project] Ansible best practice

2017-01-31 Thread Rui Goncalves
Hi all, I have no experience writing ansible roles. At the moment I'm trying to write a few ansible roles, but I'm not sure how to separate responsibilities. I have two roles. - prometheus - installs and configures prometheus. - mongodb - Installs and configures mongodb database. Prometheus