]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-common: Install yum plugin priorities
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 15 Mar 2019 15:30:15 +0000 (11:30 -0400)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Sat, 16 Mar 2019 06:24:55 +0000 (06:24 +0000)
When using community repository we need to set the priority on the
ceph repositories because we could have some conflict with EPEL
packages.
In order to set the priority on the ceph repositories, we need to
install the yum-plugin-priorities package.

http://docs.ceph.com/docs/master/install/get-packages/#rpm-packages

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-common/tasks/installs/redhat_community_repository.yml

index c2d819e3e7b1845b8792eb5adb8cfbc2e9f8c3ff..435d10c72b0a75158bbb98ada48b0e87fd5147a1 100644 (file)
@@ -1,4 +1,12 @@
 ---
+- name: install yum plugin priorities
+  package:
+    name: yum-plugin-priorities
+  register: result
+  until: result is succeeded
+  tags:
+    - with_pkg
+
 - name: configure red hat ceph community repository stable key
   rpm_key:
     key: "{{ ceph_stable_key }}"
@@ -15,6 +23,7 @@
     gpgkey: "{{ ceph_stable_key }}"
     baseurl: "{{ ceph_mirror }}/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/$basearch"
     file: ceph_stable
+    priority: 2
   register: result
   until: result is succeeded
 
@@ -27,5 +36,6 @@
     gpgkey: "{{ ceph_stable_key }}"
     baseurl: "{{ ceph_mirror }}/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch"
     file: ceph_stable
+    priority: 2
   register: result
   until: result is succeeded
\ No newline at end of file