2017-08-03 21:30:25 +08:00
|
|
|
---
|
2021-03-19 12:11:42 +08:00
|
|
|
- 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
|
|
|
|
|
2017-08-03 21:30:25 +08:00
|
|
|
- name: fetch ceph debian development repository
|
|
|
|
uri:
|
2021-03-19 12:11:42 +08:00
|
|
|
url: "{{ (latest_build.content | from_json)[0]['chacra_url'] }}repo"
|
2017-08-03 21:30:25 +08:00
|
|
|
return_content: yes
|
|
|
|
register: ceph_dev_deb_repo
|
|
|
|
|
|
|
|
- name: configure ceph debian development repository
|
|
|
|
apt_repository:
|
|
|
|
repo: "{{ ceph_dev_deb_repo.content }}"
|
|
|
|
state: present
|
2018-11-02 02:48:06 +08:00
|
|
|
update_cache: yes
|