diff --git a/roles/ceph-nfs/tasks/pre_requisite_non_container_red_hat.yml b/roles/ceph-nfs/tasks/pre_requisite_non_container_red_hat.yml index eca66bd81d..80b512e5c9 100644 --- a/roles/ceph-nfs/tasks/pre_requisite_non_container_red_hat.yml +++ b/roles/ceph-nfs/tasks/pre_requisite_non_container_red_hat.yml @@ -16,19 +16,23 @@ - name: red hat based systems - dev repo related tasks block: - - name: fetch nfs-ganesha red hat development repository - uri: - url: https://shaman.ceph.com/api/repos/nfs-ganesha/next/latest/{{ ansible_distribution | lower }}/{{ ansible_distribution_major_version }}/flavors/{{ nfs_ganesha_flavor }}/repo - return_content: yes - register: nfs_ganesha_dev_yum_repo + - name: add nfs-ganesha dev repo + yum_repository: + name: nfs-ganesha + baseurl: https://download.nfs-ganesha.org/3/LATEST/CentOS/el-$releasever/$basearch + description: nfs-ganesha repository + gpgcheck: true + gpgkey: https://download.nfs-ganesha.org/3/rsa.pub + file: nfs-ganesha-dev - - name: add nfs-ganesha development repository - copy: - content: "{{ nfs_ganesha_dev_yum_repo.content }}" - dest: /etc/yum.repos.d/nfs-ganesha-dev.repo - owner: root - group: root - backup: yes + - name: add nfs-ganesha dev noarch repo + yum_repository: + name: nfs-ganesha-noarch + baseurl: https://download.nfs-ganesha.org/3/LATEST/CentOS/el-$releasever/noarch + description: nfs-ganesha noarch repository + gpgcheck: true + gpgkey: https://download.nfs-ganesha.org/3/rsa.pub + file: nfs-ganesha-dev when: - nfs_ganesha_dev | bool - ceph_repository == 'dev'