Skip to content

Commit

Permalink
Add RockyLinux support
Browse files Browse the repository at this point in the history
Fixes: #241

Signed-off-by: Teoman ONAY <[email protected]>
  • Loading branch information
asm0deuz committed Dec 1, 2023
1 parent 90e8370 commit 5a292c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cephadm-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
changed_when: false
register: result
until: result is succeeded
when: ansible_facts['distribution'] == 'CentOS' or ansible_facts['distribution'] == 'RedHat'
when: ansible_facts['os_family'] == 'RedHat'

- name: install ceph client prerequisites if needed
package:
Expand Down
4 changes: 2 additions & 2 deletions cephadm-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
name: ceph_defaults

- name: redhat family of OS related tasks
when: ansible_facts['distribution'] == 'CentOS' or ansible_facts['distribution'] == 'RedHat'
when: ansible_facts['os_family'] == 'RedHat'
block:
- name: rhcs related tasks
when: ceph_origin == 'rhcs'
Expand Down Expand Up @@ -163,7 +163,7 @@
loop: "{{ ceph_custom_repositories }}"

- name: install epel-release
when: ansible_facts['distribution'] == 'CentOS'
when: ansible_facts['distribution'] != 'RedHat'
block:
- name: enable required CentOS repository for epel
command: dnf config-manager --set-enabled "{{ 'powertools' if ansible_facts['distribution_major_version'] == '8' else 'crb' }}"
Expand Down

0 comments on commit 5a292c5

Please sign in to comment.