mirror of https://github.com/ceph/ceph-ansible.git
128 lines
3.7 KiB
YAML
128 lines
3.7 KiB
YAML
---
|
|
- include: ./checks/check_system.yml
|
|
- include: ./checks/check_mandatory_vars.yml
|
|
|
|
- include: ./checks/check_firewall.yml
|
|
when: check_firewall
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- include: ./misc/system_tuning.yml
|
|
when: osd_group_name in group_names
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- include: ./pre_requisites/prerequisite_rhcs_iso_install.yml
|
|
when:
|
|
- ceph_rhcs
|
|
- ceph_rhcs_iso_install
|
|
tags:
|
|
- package-install
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- include: ./pre_requisites/prerequisite_rhcs_cdn_install.yml
|
|
when:
|
|
- ceph_rhcs
|
|
- ceph_rhcs_cdn_install
|
|
- ansible_os_family == "RedHat"
|
|
tags:
|
|
- package-install
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- include: ./pre_requisites/prerequisite_rhcs_cdn_install_debian.yml
|
|
when:
|
|
- ceph_rhcs
|
|
- ceph_rhcs_cdn_install
|
|
- ansible_os_family == "Debian"
|
|
tags:
|
|
- package-install
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- include: ./installs/install_on_redhat.yml
|
|
when:
|
|
- ansible_os_family == 'RedHat'
|
|
- not ceph_rhcs
|
|
tags:
|
|
- package-install
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- include: ./installs/install_on_debian.yml
|
|
when:
|
|
- ansible_os_family == 'Debian'
|
|
- not ceph_rhcs
|
|
tags:
|
|
- package-install
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- include: ./installs/install_rh_storage_on_redhat.yml
|
|
when:
|
|
- ceph_rhcs
|
|
- ansible_distribution == "RedHat"
|
|
tags:
|
|
- package-install
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- include: ./installs/install_rh_storage_on_debian.yml
|
|
when:
|
|
- ansible_os_family == 'Debian'
|
|
- ceph_rhcs
|
|
tags:
|
|
- package-install
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- include: ./installs/install_on_clear.yml
|
|
when: ansible_os_family == 'ClearLinux'
|
|
tags:
|
|
- package-install
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- include: ./misc/ntp_redhat.yml
|
|
when:
|
|
- ansible_os_family == 'RedHat'
|
|
- ntp_service_enabled
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- include: ./misc/ntp_debian.yml
|
|
when:
|
|
- ansible_os_family == 'Debian'
|
|
- ntp_service_enabled
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- name: get ceph version
|
|
command: ceph --version
|
|
changed_when: false
|
|
always_run: yes
|
|
register: ceph_version
|
|
|
|
- set_fact:
|
|
ceph_version: "{{ ceph_version.stdout.split(' ')[2] }}"
|
|
|
|
# override ceph_stable_release for ceph_dev and rhcs installations since ceph_stable_release is not mandatory
|
|
- include: ./release-rhcs.yml
|
|
when: (ceph_rhcs or ceph_dev)
|
|
tags:
|
|
- always
|
|
|
|
- include: facts_mon_fsid.yml
|
|
run_once: true
|
|
when:
|
|
- cephx
|
|
- not monitor_keyring_conf.stat.exists
|
|
- ceph_current_fsid.rc == 0
|
|
- mon_group_name in group_names
|
|
|
|
- include: create_ceph_initial_dirs.yml
|
|
- include: generate_ceph_conf.yml
|
|
- include: create_rbd_client_dir.yml
|
|
- include: configure_cluster_name.yml
|