2017-08-03 21:30:25 +08:00
|
|
|
---
|
|
|
|
- name: fetch ceph debian development repository
|
|
|
|
uri:
|
|
|
|
url: https://shaman.ceph.com/api/repos/ceph/{{ ceph_dev_branch }}/{{ ceph_dev_sha1 }}/{{ ansible_distribution | lower }}/{{ ansible_lsb.codename }}/repo
|
|
|
|
return_content: yes
|
|
|
|
register: ceph_dev_deb_repo
|
|
|
|
|
|
|
|
- name: configure ceph debian development repository
|
|
|
|
apt_repository:
|
|
|
|
repo: "{{ ceph_dev_deb_repo.content }}"
|
|
|
|
state: present
|
|
|
|
changed_when: false
|
2017-08-21 20:38:21 +08:00
|
|
|
|
|
|
|
- name: fetch nfs-ganesha development repository
|
|
|
|
uri:
|
|
|
|
url: https://shaman.ceph.com/api/repos/nfs-ganesha/next/latest/{{ ansible_distribution | lower }}/{{ ansible_distribution_release }}/flavors/{{ nfs_ganesha_flavor }}/repo
|
|
|
|
return_content: yes
|
|
|
|
register: nfs_ganesha_apt_repo
|
|
|
|
when:
|
|
|
|
- nfs_group_name in group_names
|
|
|
|
- nfs_ganesha_dev
|
|
|
|
|
|
|
|
- name: add nfs-ganesha development repository
|
|
|
|
copy:
|
|
|
|
content: "{{ nfs_ganesha_dev_apt_repo.content }}"
|
|
|
|
dest: /etc/apt/sources.list.d/nfs-ganesha-dev.list
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
backup: yes
|
|
|
|
when:
|
|
|
|
- nfs_group_name in group_names
|
|
|
|
- nfs_ganesha_dev
|
|
|
|
|