ceph-nfs: add stable noarch repository

When using the stable nfs ganesha repository, we need have both arch
and noarch repositories enabled.
Currently the noarch repository is missing which cause the non
containerized deployment to fail.

Closes: #5375

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 44e1ebaaff)
pull/5388/head
Dimitri Savineau 2020-05-15 11:20:08 -04:00 committed by Dimitri Savineau
parent 521c356f33
commit 3247b1eea9
1 changed files with 21 additions and 8 deletions

View File

@ -1,6 +1,11 @@
---
- name: red hat based systems - repo handling
when: ceph_origin == 'repository'
block:
- name: red hat based systems - stable repo related tasks
when:
- nfs_ganesha_stable | bool
- ceph_repository == 'community'
block:
- name: add nfs-ganesha stable repository
yum_repository:
@ -10,9 +15,17 @@
state: present
gpgkey: "{{ ceph_stable_key }}"
baseurl: "{{ ceph_mirror }}/nfs-ganesha/rpm-{{ nfs_ganesha_stable_branch }}/{{ ceph_release }}/el$releasever/$basearch"
when:
- nfs_ganesha_stable | bool
- ceph_repository == 'community'
file: nfs_ganesha_stable
- name: add nfs-ganesha stable noarch repository
yum_repository:
name: nfs_ganesha_stable_noarch
description: nfs-ganesha stable noarch repo
gpgcheck: yes
state: present
gpgkey: "{{ ceph_stable_key }}"
baseurl: "{{ ceph_mirror }}/nfs-ganesha/rpm-{{ nfs_ganesha_stable_branch }}/{{ ceph_release }}/el$releasever/noarch"
file: nfs_ganesha_stable
- name: red hat based systems - dev repo related tasks
block: