2015-07-03 00:23:11 +08:00
---
2020-01-31 21:59:21 +08:00
- name : "rhcs {{ ceph_rhcs_version }} on rhel 8"
2021-03-03 22:43:50 +08:00
when : ansible_facts['distribution_major_version'] | int == 8
2020-01-31 21:59:21 +08:00
block :
- name : enable red hat storage monitor repository
rhsm_repository :
2021-03-03 22:43:50 +08:00
name : "rhceph-{{ ceph_rhcs_version }}-mon-for-rhel-8-{{ ansible_facts['architecture'] }}-rpms"
2020-01-31 21:59:21 +08:00
when : (mon_group_name in group_names or mgr_group_name in group_names)
- name : enable red hat storage osd repository
rhsm_repository :
2021-03-03 22:43:50 +08:00
name : "rhceph-{{ ceph_rhcs_version }}-osd-for-rhel-8-{{ ansible_facts['architecture'] }}-rpms"
2020-01-31 21:59:21 +08:00
when : osd_group_name in group_names
- name : enable red hat storage tools repository
rhsm_repository :
2021-03-03 22:43:50 +08:00
name : "rhceph-{{ ceph_rhcs_version }}-tools-for-rhel-8-{{ ansible_facts['architecture'] }}-rpms"
2021-02-03 23:28:24 +08:00
when : (mgr_group_name in group_names or rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names or iscsi_gw_group_name in group_names or client_group_name in group_names or monitoring_group_name in group_names)
2020-01-31 21:59:21 +08:00
- name : "rhcs {{ ceph_rhcs_version }} on rhel 7"
2021-03-03 22:43:50 +08:00
when : ansible_facts['distribution_major_version'] | int == 7
2020-01-31 21:59:21 +08:00
block :
- name : enable red hat storage monitor repository
rhsm_repository :
name : "rhel-7-server-rhceph-{{ ceph_rhcs_version }}-mon-rpms"
when : (mon_group_name in group_names or mgr_group_name in group_names)
- name : enable red hat storage osd repository
rhsm_repository :
name : "rhel-7-server-rhceph-{{ ceph_rhcs_version }}-osd-rpms"
when : osd_group_name in group_names
- name : enable red hat storage tools repository
rhsm_repository :
name : "rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms"
2021-02-03 23:28:24 +08:00
when : (mgr_group_name in group_names or rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names or iscsi_gw_group_name in group_names or client_group_name in group_names or monitoring_group_name in group_names)