]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix package state for upgrades on SuSE/RHEL
authorAndy McCrae <andy.mccrae@gmail.com>
Wed, 27 Jun 2018 13:05:44 +0000 (14:05 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Wed, 27 Jun 2018 18:55:22 +0000 (18:55 +0000)
During 226f80c22bf61a7e8f00f4cca5f35eda67280250 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>
roles/ceph-common/tasks/installs/install_redhat_packages.yml
roles/ceph-common/tasks/installs/install_suse_packages.yml

index 37f6c8cc5f0753897df99657f9f98b627f1f5b34..4446465a9aa0194fce93b32ceb5625a8e6b1b664 100644 (file)
@@ -16,4 +16,4 @@
 - name: install redhat ceph packages
   package:
     name: "{{ redhat_ceph_pkgs | unique }}"
-    state: present
+    state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
index a7b0626b094f0b857790030a4addf51c2423d605..c202c5ece9238705ec1a805f1e3a9b10bdb0988c 100644 (file)
@@ -7,4 +7,4 @@
 - name: install suse ceph packages
   package:
     name: "{{ suse_ceph_pkgs | unique }}"
-    state: present
+    state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"