]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-nfs: fix dev repo task
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 29 Apr 2021 07:01:13 +0000 (09:01 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 30 Apr 2021 11:37:09 +0000 (13:37 +0200)
We need to filter with the OS architecture in order to fetch the right
dev repository in shaman

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 8f87754b763a30888a29c15e4e92fdca830d6fe0)

roles/ceph-nfs/tasks/pre_requisite_non_container_debian.yml
roles/ceph-nfs/tasks/pre_requisite_non_container_red_hat.yml

index 403971aa23d9b67858c0e4ee54ccea8cddc84b28..ea7122aa545819c109721ddbbe55a43b7c4a5377 100644 (file)
@@ -30,7 +30,7 @@
       block:
         - name: fetch nfs-ganesha development repository
           uri:
-            url: https://shaman.ceph.com/api/repos/nfs-ganesha/next/latest/{{ ansible_facts['distribution'] | lower }}/{{ ansible_facts['distribution_release'] }}/flavors/{{ nfs_ganesha_flavor }}/repo
+            url: "https://shaman.ceph.com/api/repos/nfs-ganesha/next/latest/{{ ansible_facts['distribution'] | lower }}/{{ ansible_facts['distribution_release'] }}/flavors/{{ nfs_ganesha_flavor }}/repo?arch={{ ansible_facts['architecture'] }}"
             return_content: yes
           register: nfs_ganesha_dev_apt_repo
 
index 0571ac7290e9fa7bc21cf179aaab9885e895ee58..46a9e4f061b8dd19dddf036f24dc5bb644a0cc2f 100644 (file)
@@ -31,7 +31,7 @@
       block:
         - name: add nfs-ganesha dev repo
           get_url:
-            url: "https://shaman.ceph.com/api/repos/nfs-ganesha/next/latest/{{ ansible_facts['distribution'] | lower }}/{{ ansible_facts['distribution_major_version'] }}/flavors/{{ nfs_ganesha_flavor }}/repo"
+            url: "https://shaman.ceph.com/api/repos/nfs-ganesha/next/latest/{{ ansible_facts['distribution'] | lower }}/{{ ansible_facts['distribution_major_version'] }}/flavors/{{ nfs_ganesha_flavor }}/repo?arch={{ ansible_facts['architecture'] }}"
             dest: /etc/yum.repos.d/nfs-ganesha-dev.repo
             force: true
       when: