2014-03-04 02:08:51 +08:00
|
|
|
---
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include configure_repository.yml
|
|
|
|
ansible.builtin.include_tasks: configure_repository.yml
|
2021-08-05 23:46:04 +08:00
|
|
|
tags: package-configure
|
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include installs/install_redhat_packages.yml
|
|
|
|
ansible.builtin.include_tasks: installs/install_redhat_packages.yml
|
2021-08-05 23:46:04 +08:00
|
|
|
when:
|
|
|
|
- ansible_facts['os_family'] == 'RedHat'
|
|
|
|
- (ceph_origin == 'repository' or ceph_origin == 'distro')
|
2019-04-01 23:46:15 +08:00
|
|
|
tags: package-install
|
2015-01-07 18:25:34 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include installs/install_suse_packages.yml
|
|
|
|
ansible.builtin.include_tasks: installs/install_suse_packages.yml
|
2021-03-03 22:43:50 +08:00
|
|
|
when: ansible_facts['os_family'] == 'Suse'
|
2019-04-01 23:46:15 +08:00
|
|
|
tags: package-install
|
2017-10-12 21:55:20 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include installs/install_on_debian.yml
|
|
|
|
ansible.builtin.include_tasks: installs/install_on_debian.yml
|
2019-04-01 23:46:15 +08:00
|
|
|
tags: package-install
|
2021-03-03 22:43:50 +08:00
|
|
|
when: ansible_facts['os_family'] == 'Debian'
|
2015-01-07 18:25:34 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include_tasks installs/install_on_clear.yml
|
|
|
|
ansible.builtin.include_tasks: installs/install_on_clear.yml
|
2021-03-03 22:43:50 +08:00
|
|
|
when: ansible_facts['os_family'] == 'ClearLinux'
|
2019-04-01 23:46:15 +08:00
|
|
|
tags: package-install
|
2016-04-23 03:13:36 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Get ceph version
|
|
|
|
ansible.builtin.command: ceph --version
|
2017-07-29 05:02:51 +08:00
|
|
|
changed_when: false
|
2024-02-14 18:14:02 +08:00
|
|
|
check_mode: false
|
2017-07-29 05:02:51 +08:00
|
|
|
register: ceph_version
|
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Set_fact ceph_version
|
|
|
|
ansible.builtin.set_fact:
|
2017-07-29 05:02:51 +08:00
|
|
|
ceph_version: "{{ ceph_version.stdout.split(' ')[2] }}"
|
|
|
|
|
2017-08-03 23:43:05 +08:00
|
|
|
# override ceph_stable_release for ceph_dev and rhcs installations since ceph_stable_release is not mandatory
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include release-rhcs.yml
|
|
|
|
ansible.builtin.include_tasks: release-rhcs.yml
|
2019-04-01 23:46:15 +08:00
|
|
|
when: ceph_repository in ['rhcs', 'dev']
|
2019-01-02 21:30:27 +08:00
|
|
|
or
|
|
|
|
ceph_origin == 'distro'
|
2019-04-01 23:46:15 +08:00
|
|
|
tags: always
|
2017-08-03 23:43:05 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Set_fact ceph_release - override ceph_release with ceph_stable_release
|
|
|
|
ansible.builtin.set_fact:
|
2019-01-22 21:25:45 +08:00
|
|
|
ceph_release: "{{ ceph_stable_release }}"
|
|
|
|
when:
|
|
|
|
- ceph_origin == 'repository'
|
2019-10-17 23:05:53 +08:00
|
|
|
- ceph_repository not in ['dev', 'rhcs', 'custom']
|
2019-04-01 23:46:15 +08:00
|
|
|
tags: always
|
2019-01-22 21:25:45 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include create_rbd_client_dir.yml
|
|
|
|
ansible.builtin.include_tasks: create_rbd_client_dir.yml
|
2017-09-15 06:48:53 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include configure_cluster_name.yml
|
|
|
|
ansible.builtin.include_tasks: configure_cluster_name.yml
|
2017-10-23 21:57:24 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include configure_memory_allocator.yml
|
|
|
|
ansible.builtin.include_tasks: configure_memory_allocator.yml
|
2017-10-23 21:57:24 +08:00
|
|
|
when:
|
|
|
|
- (ceph_tcmalloc_max_total_thread_cache | int) > 0
|
|
|
|
- (ceph_origin == 'repository' or ceph_origin == 'distro')
|
2021-04-01 20:37:45 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include selinux.yml
|
|
|
|
ansible.builtin.include_tasks: selinux.yml
|
2021-04-01 20:37:45 +08:00
|
|
|
when:
|
|
|
|
- ansible_facts['os_family'] == 'RedHat'
|
|
|
|
- inventory_hostname in groups.get(nfs_group_name, [])
|
2024-02-14 18:14:02 +08:00
|
|
|
or inventory_hostname in groups.get(rgwloadbalancer_group_name, [])
|