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
2018-12-20 17:00:26 +08:00
register : result
until : result is succeeded
2017-08-02 21:13:06 +08:00
- name : enable red hat storage monitor repository for debian systems
apt_repository :
2018-04-26 17:42:11 +08:00
repo : "deb {{ ceph_rhcs_cdn_debian_repo }}{{ ceph_rhcs_cdn_debian_repo_version }}/{{ item.repo }} {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
2017-08-02 21:13:06 +08:00
state : present
2018-11-02 02:48:06 +08:00
update_cache : yes
2018-04-26 17:42:11 +08:00
with_items :
2018-06-27 05:41:14 +08:00
- { repo : "MON" , configure : (mon_group_name in group_names or mgr_group_name in group_names) }
2018-04-26 17:42:11 +08:00
- { repo : "OSD" , configure : (osd_group_name in group_names) }
2018-06-27 05:41:14 +08:00
- { repo : "Tools" , configure : (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names or iscsi_gw_group_name in group_names or client_group_name in group_names) }
2018-04-26 17:42:11 +08:00
when : item.configure