mirror of https://github.com/ceph/ceph-ansible.git
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
parent
322e2de7d2
commit
a4a3d9a01b
|
@ -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') }}"
|
||||||
|
|
|
@ -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') }}"
|
||||||
|
|
Loading…
Reference in New Issue