]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rhcs: re-add apt-pining
authorSébastien Han <seb@redhat.com>
Tue, 17 Apr 2018 13:59:52 +0000 (15:59 +0200)
committerSébastien Han <seb@redhat.com>
Tue, 17 Apr 2018 14:07:06 +0000 (16:07 +0200)
When installing rhcs on Debian systems the red hat repos must have the
highest priority so we avoid packages conflicts and install the rhcs
version.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1565850
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-common/tasks/installs/debian_rhcs_repository.yml

index 5bf4418b25e18c541f8dce8b956b2c4c068778f7..f381be077d677979d551010eb17ff64a3ce1c42f 100644 (file)
@@ -1,4 +1,12 @@
 ---
+- name: set apt pinning for red hat ceph storage
+  template:
+    src: "{{ role_path }}/templates/rhcs.pref.j2"
+    dest: /etc/apt/preferences.d/rhcs.pref
+    owner: root
+    group: root
+    mode: 0644
+
 - name: include prerequisite_rhcs_iso_install_debian.yml
   include: prerequisite_rhcs_iso_install_debian.yml
   when: