2017-03-16 17:17:08 +08:00
|
|
|
---
|
2020-04-04 04:33:11 +08:00
|
|
|
- name: set_fact ceph_mgr_packages for sso
|
|
|
|
set_fact:
|
|
|
|
ceph_mgr_packages: "{{ ceph_mgr_packages | union(['python3-saml' if ansible_distribution_major_version | int == 8 else 'python-saml']) }}"
|
|
|
|
when:
|
|
|
|
- dashboard_enabled | bool
|
|
|
|
- ansible_distribution == 'RedHat'
|
|
|
|
|
2020-04-03 03:58:11 +08:00
|
|
|
- name: set_fact ceph_mgr_packages for dashboard
|
|
|
|
set_fact:
|
|
|
|
ceph_mgr_packages: "{{ ceph_mgr_packages | union(['ceph-mgr-dashboard']) }}"
|
|
|
|
when: dashboard_enabled | bool
|
|
|
|
|
|
|
|
- name: set_fact ceph_mgr_packages for non el7 distribution
|
|
|
|
set_fact:
|
|
|
|
ceph_mgr_packages: "{{ ceph_mgr_packages | union(['ceph-mgr-diskprediction-local']) }}"
|
|
|
|
when:
|
|
|
|
- ansible_os_family != 'RedHat'
|
|
|
|
- ansible_distribution_major_version | int != 7
|
|
|
|
|
2019-04-16 00:15:49 +08:00
|
|
|
- name: install ceph-mgr packages on RedHat or SUSE
|
2017-10-09 21:26:15 +08:00
|
|
|
package:
|
2019-04-16 00:15:49 +08:00
|
|
|
name: '{{ ceph_mgr_packages }}'
|
2017-10-09 21:26:15 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2018-12-19 21:55:01 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2019-04-01 23:46:15 +08:00
|
|
|
when: ansible_os_family in ['RedHat', 'Suse']
|
2017-10-09 21:26:15 +08:00
|
|
|
|
2019-04-16 00:15:49 +08:00
|
|
|
- name: install ceph-mgr packages for debian
|
2017-10-09 21:26:15 +08:00
|
|
|
apt:
|
2019-04-16 00:15:49 +08:00
|
|
|
name: '{{ ceph_mgr_packages }}'
|
2017-10-09 21:26:15 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2020-09-26 00:15:02 +08:00
|
|
|
default_release: "{{ ceph_stable_release_uca | default('') if ceph_origin == 'repository' and ceph_repository == 'uca' else ''}}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports | bool else '' }}"
|
2018-12-19 21:55:01 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2019-04-01 23:46:15 +08:00
|
|
|
when: ansible_os_family == 'Debian'
|