---
-- name: install yum plugin priorities
- package:
- name: yum-plugin-priorities
- register: result
- until: result is succeeded
- tags: with_pkg
- when: ansible_distribution_major_version | int == 7
-
- name: configure red hat ceph community repository stable key
rpm_key:
key: "{{ ceph_stable_key }}"
centos_package_dependencies:
- epel-release
- - "{{ 'python3-libselinux' if ansible_distribution_major_version | int >= 8 else 'libselinux-python' }}"
+ - python3-libselinux
redhat_package_dependencies: []
- name: set_fact container_binary
set_fact:
- container_binary: "{{ 'podman' if (podman_binary.stat.exists and ansible_distribution == 'Fedora') or (ansible_os_family == 'RedHat' and ansible_distribution_major_version == '8') else 'docker' }}"
\ No newline at end of file
+ container_binary: "{{ 'podman' if (podman_binary.stat.exists and ansible_distribution == 'Fedora') or (ansible_os_family == 'RedHat') else 'docker' }}"
\ No newline at end of file
---
- 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']) }}"
+ ceph_mgr_packages: "{{ ceph_mgr_packages | union(['python3-saml']) }}"
when:
- dashboard_enabled | bool
- ansible_distribution == 'RedHat'
ceph_mgr_packages: "{{ ceph_mgr_packages | union(['ceph-mgr-dashboard']) }}"
when: dashboard_enabled | bool
-- name: set_fact ceph_mgr_packages for non el7 distribution
+- name: set_fact ceph_mgr_packages
set_fact:
ceph_mgr_packages: "{{ ceph_mgr_packages | union(['ceph-mgr-diskprediction-local']) }}"
- when:
- - ansible_os_family != 'RedHat'
- - ansible_distribution_major_version | int != 7
- name: install ceph-mgr packages on RedHat or SUSE
package:
- name: if selinux is not disable
when: selinuxstatus.stdout != 'Disabled'
block:
- - name: install policycoreutils-python
- package:
- name: policycoreutils-python
- state: present
- register: result
- until: result is succeeded
- when: ansible_distribution_major_version == '7'
-
- name: install nfs-ganesha-selinux and python3-policycoreutils on RHEL 8
package:
name: ['nfs-ganesha-selinux', 'python3-policycoreutils']
state: present
register: result
until: result is succeeded
- when: ansible_distribution_major_version == '8'
- name: add ganesha_t to permissive domain
selinux_permissive:
- name: set_fact container_binary
set_fact:
- container_binary: "{{ 'podman' if (podman_binary.stat.exists and ansible_distribution == 'Fedora') or (ansible_os_family == 'RedHat' and ansible_distribution_major_version == '8') else 'docker' }}"
+ container_binary: "{{ 'podman' if (podman_binary.stat.exists and ansible_distribution == 'Fedora') or (ansible_os_family == 'RedHat') else 'docker' }}"
- name: get ceph status from the first monitor
command: >
mount:
path: '{{ rootmount.mount }}'
src: '{{ rootmount.device }}'
- opts: 'noatime,nodiratime{% if ansible_os_family == "RedHat" and ansible_distribution_major_version | int < 8 %},nobarrier{% endif %}'
+ opts: 'noatime,nodiratime'
fstype: '{{ rootmount.fstype }}'
state: mounted
until: result is succeeded
when: not is_atomic | bool
- - name: centos based systems - configure repos
- block:
- - name: disable fastest mirror detection
- ini_file:
- path: /etc/yum/pluginconf.d/fastestmirror.conf
- section: main
- option: enabled
- value: 0
- - name: install epel
- package:
- name: epel-release
- state: present
- register: result
- until: result is succeeded
- - name: enable local epel repository
- ini_file:
- path: /etc/yum.repos.d/epel.repo
- section: epel
- option: baseurl
- value: http://apt-mirror.front.sepia.ceph.com/epel7/
- - name: disable remote epel repository
- ini_file:
- path: /etc/yum.repos.d/epel.repo
- section: epel
- option: metalink
- state: absent
- when:
- - ansible_distribution == 'CentOS'
- - ansible_distribution_major_version | int == 7
- - not is_atomic | bool
-
- name: resize logical volume for root partition to fill remaining free space
lvol:
lv: root