diff --git a/.mergify.yml b/.mergify.yml index 1a16d53..4bd06e7 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -1,5 +1,12 @@ pull_request_rules: # Backports + - actions: + backport: + branches: + - reef + conditions: + - label=backport-reef + name: backport reef - actions: backport: branches: diff --git a/cephadm-preflight.yml b/cephadm-preflight.yml index f7cbd22..9653bbe 100644 --- a/cephadm-preflight.yml +++ b/cephadm-preflight.yml @@ -24,6 +24,12 @@ - hosts: all become: true gather_facts: true + vars: + repos_to_disable: + - rhceph-4-tools-for-rhel-{{ ansible_facts['distribution_major_version'] }}-{{ ansible_facts['architecture'] }}-rpms + - rhceph-4-mon-for-rhel-{{ ansible_facts['distribution_major_version'] }}-{{ ansible_facts['architecture'] }}-rpms + - rhceph-4-osd-for-rhel-{{ ansible_facts['distribution_major_version'] }}-{{ ansible_facts['architecture'] }}-rpms + - rhceph-5-tools-for-rhel-{{ ansible_facts['distribution_major_version'] }}-{{ ansible_facts['architecture'] }}-rpms tasks: - name: import_role ceph_defaults import_role: @@ -41,13 +47,8 @@ - name: disable older rhceph repositories if any rhsm_repository: - name: "{{ item }}" + name: "{{ repos_to_disable }}" state: absent - loop: - - rhceph-4-tools-for-rhel-8-{{ ansible_facts['architecture'] }}-rpms - - rhceph-4-mon-for-rhel-8-{{ ansible_facts['architecture'] }}-rpms - - rhceph-4-osd-for-rhel-8-{{ ansible_facts['architecture'] }}-rpms - when: ansible_facts['distribution_major_version'] | int == 8 - name: enable ceph package repositories when: ceph_origin in ['community', 'ibm']