common: fix debian rhcs installation

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/2009/head
Sébastien Han 2017-10-06 22:17:50 +02:00
parent c3c63ae539
commit a4dcef73d4
1 changed files with 9 additions and 7 deletions

View File

@ -45,13 +45,15 @@
- name: install red hat storage repository key for debian systems
apt_key:
file: "{{ ceph_rhcs_repository_path }}/RPM-GPG-KEY-redhat-release"
file: "{{ ceph_rhcs_repository_path }}/MON/release.asc"
state: present
- name: add red hat storage repository for debian systems
template:
src: "{{ role_path }}/templates/redhat_storage_repo.j2"
dest: /etc/apt/sources.list.d/rh_storage.list
owner: root
group: root
mode: 0644
apt_repository:
repo: "deb file://{{ ceph_rhcs_repository_path }}/{{ item }} {{ ansible_lsb.codename }} main"
state: present
changed_when: false
with_items:
- MON
- OSD
- Tools