2015-08-27 17:17:11 +08:00
|
|
|
---
|
|
|
|
- name: install the ceph repository stable key
|
2015-09-04 00:18:53 +08:00
|
|
|
apt_key:
|
2016-01-23 00:43:47 +08:00
|
|
|
data: "{{ lookup('file', role_path+'/files/cephstable.asc') }}"
|
2015-09-04 00:18:53 +08:00
|
|
|
state: present
|
2015-08-27 17:17:11 +08:00
|
|
|
when: ceph_stable
|
|
|
|
|
|
|
|
- name: install the ceph development repository key
|
2015-09-04 00:18:53 +08:00
|
|
|
apt_key:
|
2016-01-23 00:43:47 +08:00
|
|
|
data: "{{ lookup('file', role_path+'/files/cephdev.asc') }}"
|
2015-09-04 00:18:53 +08:00
|
|
|
state: present
|
2015-08-27 17:17:11 +08:00
|
|
|
when: ceph_dev
|
|
|
|
|
|
|
|
- name: add ceph stable repository
|
2015-09-04 00:18:53 +08:00
|
|
|
apt_repository:
|
2016-01-12 02:13:09 +08:00
|
|
|
repo: "deb {{ ceph_stable_repo }} {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
|
2015-09-04 00:18:53 +08:00
|
|
|
state: present
|
2015-08-27 17:17:11 +08:00
|
|
|
changed_when: false
|
|
|
|
when: ceph_stable
|
|
|
|
|
2017-03-17 06:16:30 +08:00
|
|
|
- name: fetch ceph development repository sources list file
|
|
|
|
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
|
2016-12-09 03:22:29 +08:00
|
|
|
register: ceph_dev_deb_repo
|
|
|
|
when: ceph_dev
|
|
|
|
|
2015-08-27 17:17:11 +08:00
|
|
|
- name: add ceph development repository
|
2015-09-04 00:18:53 +08:00
|
|
|
apt_repository:
|
2017-03-17 06:16:30 +08:00
|
|
|
repo: "{{ ceph_dev_deb_repo.content }}"
|
2015-09-04 00:18:53 +08:00
|
|
|
state: present
|
2015-08-27 17:17:11 +08:00
|
|
|
changed_when: false
|
|
|
|
when: ceph_dev
|
|
|
|
|
2016-05-03 00:25:52 +08:00
|
|
|
- name: add ubuntu cloud archive key package
|
2016-11-28 22:16:56 +08:00
|
|
|
package:
|
|
|
|
name: ubuntu-cloud-keyring
|
2016-05-03 00:25:52 +08:00
|
|
|
when: ceph_stable_uca
|
|
|
|
|
|
|
|
- name: add ubuntu cloud archive repository
|
|
|
|
apt_repository:
|
|
|
|
repo: "deb {{ ceph_stable_repo_uca }} {{ ceph_stable_release_uca}} main"
|
|
|
|
state: present
|
|
|
|
changed_when: false
|
|
|
|
when: ceph_stable_uca
|
2016-06-22 22:13:55 +08:00
|
|
|
|
|
|
|
- name: add custom repo
|
|
|
|
apt_repository:
|
|
|
|
repo: "deb {{ ceph_custom_repo }} {{ ansible_lsb.codename }} main"
|
|
|
|
state: present
|
|
|
|
changed_when: false
|
|
|
|
when: ceph_custom
|
|
|
|
|
2016-08-30 23:01:07 +08:00
|
|
|
- name: add gluster nfs ganesha repo
|
|
|
|
apt_repository:
|
2016-10-05 21:04:39 +08:00
|
|
|
repo: "{{ item }}"
|
2016-08-30 23:01:07 +08:00
|
|
|
state: present
|
2016-10-05 21:04:39 +08:00
|
|
|
with_items:
|
|
|
|
- ppa:gluster/libntirpc
|
|
|
|
- ppa:gluster/nfs-ganesha
|
2016-08-30 23:01:07 +08:00
|
|
|
changed_when: false
|
2016-11-30 23:30:43 +08:00
|
|
|
when:
|
|
|
|
- (nfs_obj_gw or nfs_file_gw)
|
|
|
|
- not ansible_distribution == "Debian"
|