Fix package state for upgrades on SuSE/RHEL

During 226f80c22b only Debian package
installs had the correct state set to ensure packages were upgraded when
the "upgrade_ceph_packages" var was set to true.

Signed-off-by: Andy McCrae <andy.mccrae@gmail.com>
pull/2823/head
Andy McCrae 2018-06-27 14:05:44 +01:00 committed by mergify[bot]
parent 322e2de7d2
commit a4a3d9a01b
2 changed files with 2 additions and 2 deletions

View File

@ -16,4 +16,4 @@
- name: install redhat ceph packages - name: install redhat ceph packages
package: package:
name: "{{ redhat_ceph_pkgs | unique }}" name: "{{ redhat_ceph_pkgs | unique }}"
state: present state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"

View File

@ -7,4 +7,4 @@
- name: install suse ceph packages - name: install suse ceph packages
package: package:
name: "{{ suse_ceph_pkgs | unique }}" name: "{{ suse_ceph_pkgs | unique }}"
state: present state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"