Switch all these places to use dnf/yum state=present instead of latest. This prevents showing changes on package updates.

This commit is contained in:
Kevin Fenzi 2016-01-04 18:52:27 +00:00
parent 0b040b9957
commit 62e16bb9a4
13 changed files with 30 additions and 30 deletions

View file

@ -1,12 +1,12 @@
---
- name: ensure ssl related packages are installed (yum)
yum: name={{ item }} state=latest enablerepo={{ extra_enablerepos }}
yum: name={{ item }} state=present enablerepo={{ extra_enablerepos }}
with_items:
- mod_ssl
when: ansible_distribution_major_version|int < 22
- name: ensure ssl related packages are installed (dnf)
dnf: name={{ item }} state=latest enablerepo={{ extra_enablerepos }}
dnf: name={{ item }} state=present enablerepo={{ extra_enablerepos }}
with_items:
- mod_ssl
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined