From: Brad Hubbard Date: Fri, 19 Mar 2021 04:11:42 +0000 (+1000) Subject: Make sure the repo url contains the correct arch X-Git-Tag: v5.0.6~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b6d75bee2e69076ea9c1ea13263230a52786fe1e;p=ceph-ansible.git Make sure the repo url contains the correct arch We can end up with an arm only repo unless we are specific about the architecture we require. Brings the deb code in line with the rpm equivalent. Signed-off-by: Brad Hubbard (cherry picked from commit 267cce9e8360fc8cb9c192fde2406e5dca724610) --- diff --git a/roles/ceph-common/tasks/installs/debian_dev_repository.yml b/roles/ceph-common/tasks/installs/debian_dev_repository.yml index c5c8c5c3a..ca2136fee 100644 --- a/roles/ceph-common/tasks/installs/debian_dev_repository.yml +++ b/roles/ceph-common/tasks/installs/debian_dev_repository.yml @@ -1,7 +1,14 @@ --- +- name: get latest available build + uri: + url: "https://shaman.ceph.com/api/search/?status=ready&project=ceph&flavor=default&distros={{ ansible_facts['distribution'] | lower }}/{{ ansible_facts['distribution_release'] }}/{{ ansible_facts['architecture'] }}&ref={{ ceph_dev_branch }}&sha1={{ ceph_dev_sha1 }}" + return_content: yes + run_once: true + register: latest_build + - name: fetch ceph debian development repository uri: - url: https://shaman.ceph.com/api/repos/ceph/{{ ceph_dev_branch }}/{{ ceph_dev_sha1 }}/{{ ansible_facts['distribution'] | lower }}/{{ ansible_facts['distribution_release'] }}/repo + url: "{{ (latest_build.content | from_json)[0]['chacra_url'] }}repo" return_content: yes register: ceph_dev_deb_repo