From a4dcef73d4b088b3f8cfd3cd24f975750e9b8528 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Fri, 6 Oct 2017 22:17:50 +0200 Subject: [PATCH] common: fix debian rhcs installation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Han --- .../prerequisite_rhcs_iso_install_debian.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install_debian.yml b/roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install_debian.yml index 1d35ab281..32370f8e3 100644 --- a/roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install_debian.yml +++ b/roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install_debian.yml @@ -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 -- 2.39.5