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
|
|
|
|
|
|
|
|
- name: add ceph development repository
|
2015-09-04 00:18:53 +08:00
|
|
|
apt_repository:
|
|
|
|
repo: "deb http://gitbuilder.ceph.com/ceph-deb-{{ ansible_lsb.codename }}-x86_64-basic/ref/{{ ceph_dev_branch }} {{ ansible_lsb.codename }} main"
|
|
|
|
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
|
|
|
|
apt:
|
|
|
|
pkg: ubuntu-cloud-keyring
|
|
|
|
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
|
|
|
|
when: nfs_obj_gw or nfs_file_gw
|
2016-10-05 21:04:39 +08:00
|
|
|
|