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:
|
2021-03-03 22:43:50 +08:00
|
|
|
ceph_mgr_packages: "{{ ceph_mgr_packages | union(['python3-saml' if ansible_facts['distribution_major_version'] | int == 8 else 'python-saml']) }}"
|
2020-04-04 04:33:11 +08:00
|
|
|
when:
|
|
|
|
- dashboard_enabled | bool
|
2021-03-03 22:43:50 +08:00
|
|
|
- ansible_facts['distribution'] == 'RedHat'
|
2020-04-04 04:33:11 +08:00
|
|
|
|
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
|
2021-03-03 22:43:50 +08:00
|
|
|
when: ansible_facts['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') }}"
|
2021-03-03 22:43:50 +08:00
|
|
|
default_release: "{{ ceph_stable_release_uca | default('') if ceph_origin == 'repository' and ceph_repository == 'uca' else ''}}{{ ansible_facts['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
|
2021-03-03 22:43:50 +08:00
|
|
|
when: ansible_facts['os_family'] == 'Debian'
|
2019-05-17 23:24:00 +08:00
|
|
|
|
|
|
|
- name: install routes python library for dashboard module
|
|
|
|
apt:
|
|
|
|
name: python-routes
|
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
|
|
|
when:
|
2021-03-03 22:43:50 +08:00
|
|
|
- ansible_facts['os_family'] == 'Debian'
|
2019-05-17 23:24:00 +08:00
|
|
|
- "'ceph-mgr-dashboard' in ceph_mgr_packages"
|