mirror of https://github.com/ceph/ceph-ansible.git
46 lines
1.8 KiB
YAML
46 lines
1.8 KiB
YAML
---
|
|
- name: Set_fact ceph_mgr_packages for sso
|
|
ansible.builtin.set_fact:
|
|
ceph_mgr_packages: "{{ ceph_mgr_packages | union(['python3-saml' if ansible_facts['distribution_major_version'] | int == 8 else 'python-saml']) }}"
|
|
when:
|
|
- dashboard_enabled | bool
|
|
- ansible_facts['distribution'] == 'RedHat'
|
|
|
|
- name: Set_fact ceph_mgr_packages for dashboard
|
|
ansible.builtin.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
|
|
ansible.builtin.set_fact:
|
|
ceph_mgr_packages: "{{ ceph_mgr_packages | union(['ceph-mgr-diskprediction-local']) }}"
|
|
when:
|
|
- ansible_facts['os_family'] != 'RedHat'
|
|
- ansible_facts['distribution_major_version'] | int != 7
|
|
|
|
- name: Enable crb repository
|
|
community.general.dnf_config_manager:
|
|
name: crb
|
|
state: enabled
|
|
when:
|
|
- ansible_facts['os_family'] == 'RedHat'
|
|
- ansible_facts['distribution_major_version'] | int == 9
|
|
|
|
- name: Install ceph-mgr packages on RedHat or SUSE
|
|
ansible.builtin.package:
|
|
name: '{{ ceph_mgr_packages }}'
|
|
state: "{{ (upgrade_ceph_packages | bool) | ternary('latest', 'present') }}"
|
|
register: result
|
|
until: result is succeeded
|
|
when: ansible_facts['os_family'] in ['RedHat', 'Suse']
|
|
|
|
- name: Install ceph-mgr packages for debian
|
|
ansible.builtin.apt:
|
|
name: '{{ ceph_mgr_packages }}'
|
|
state: "{{ (upgrade_ceph_packages | bool) | ternary('latest', 'present') }}"
|
|
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 '' }}"
|
|
register: result
|
|
until: result is succeeded
|
|
when: ansible_facts['os_family'] == 'Debian'
|
|
tags: package-install
|