2017-08-02 21:13:06 +08:00
|
|
|
---
|
|
|
|
- name: install red hat storage repository key for debian systems
|
|
|
|
apt_key:
|
|
|
|
data: "{{ lookup('file', role_path+'/files/cephstablerhcs.asc') }}"
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: enable red hat storage monitor repository for debian systems
|
|
|
|
apt_repository:
|
2017-10-04 19:36:01 +08:00
|
|
|
repo: "deb {{ ceph_rhcs_cdn_debian_repo }}{{ ceph_rhcs_cdn_debian_repo_version }}/MON {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
|
2017-08-02 21:13:06 +08:00
|
|
|
state: present
|
|
|
|
changed_when: false
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- mon_group_name in group_names
|
2017-08-02 21:13:06 +08:00
|
|
|
|
|
|
|
- name: enable red hat storage osd repository for debian systems
|
|
|
|
apt_repository:
|
2017-10-04 19:36:01 +08:00
|
|
|
repo: "deb {{ ceph_rhcs_cdn_debian_repo }}{{ ceph_rhcs_cdn_debian_repo_version }}/OSD {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
|
2017-08-02 21:13:06 +08:00
|
|
|
state: present
|
|
|
|
changed_when: false
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- osd_group_name in group_names
|
2017-08-02 21:13:06 +08:00
|
|
|
|
|
|
|
- name: enable red hat storage rados gateway / mds repository for debian systems
|
|
|
|
apt_repository:
|
2017-10-04 19:36:01 +08:00
|
|
|
repo: "deb {{ ceph_rhcs_cdn_debian_repo }}{{ ceph_rhcs_cdn_debian_repo_version }}/Tools {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
|
2017-08-02 21:13:06 +08:00
|
|
|
state: present
|
|
|
|
changed_when: false
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- (rgw_group_name in group_names or mds_group_name in group_names)
|