Skip to content

Commit

Permalink
preflight: update required repos for epel
Browse files Browse the repository at this point in the history
'powertools' is for el8 whereas we need 'crb' for el9

Signed-off-by: Guillaume Abrioux <[email protected]>
  • Loading branch information
guits committed Apr 26, 2023
1 parent e972add commit b360872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cephadm-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@
- name: install epel-release
when: ansible_facts['distribution'] == 'CentOS'
block:
- name: enable CentOS PowerTools repository for epel
command: dnf config-manager --set-enabled powertools
- name: enable required CentOS repository for epel
command: dnf config-manager --set-enabled "{{ 'powertools' if ansible_facts['distribution_major_version'] == '8' else 'crb' }}"
changed_when: false

- name: install package
Expand Down

0 comments on commit b360872

Please sign in to comment.