2017-03-16 17:17:08 +08:00
|
|
|
---
|
2017-12-15 02:13:09 +08:00
|
|
|
- name: install ceph-mgr package on RedHat or SUSE
|
2017-10-09 21:26:15 +08:00
|
|
|
package:
|
|
|
|
name: ceph-mgr
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2018-12-19 21:55:01 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2017-10-09 21:26:15 +08:00
|
|
|
when:
|
2017-12-15 02:13:09 +08:00
|
|
|
- ansible_os_family in ['RedHat', 'Suse']
|
2017-10-09 21:26:15 +08:00
|
|
|
|
|
|
|
- name: install ceph mgr for debian
|
|
|
|
apt:
|
|
|
|
name: ceph-mgr
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2019-02-08 01:09:21 +08:00
|
|
|
default_release: "{{ ceph_stable_release_uca | default('') }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else '' }}"
|
2018-12-19 21:55:01 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2017-10-09 21:26:15 +08:00
|
|
|
when:
|
|
|
|
- ansible_os_family == 'Debian'
|