We no longer use download.ceph.com as a production repo. We should
be removing instead of installing it.
Signed-off-by: Boris Ranto <branto@redhat.com>
+++ /dev/null
-[cephmetrics]
-name=cephmetrics packages for \$basearch
-baseurl=http://download.ceph.com/cephmetrics/rpm-master/el7/\$basearch
-enabled=1
-gpgcheck=0
-type=rpm-md
-
-[cephmetrics-noarch]
-name=cephmetrics noarch packages
-baseurl=http://download.ceph.com/cephmetrics/rpm-master/el7/noarch
-enabled=1
-gpgcheck=0
-type=rpm-md
-
-[cephmetrics-source]
-name=cephmetrics source packages
-baseurl=http://download.ceph.com/cephmetrics/rpm-master/el7/SRPMS
-enabled=0
-gpgcheck=0
-type=rpm-md
- use_epel
- devel_mode
-- name: Install cephmetrics production repo
- copy:
- src: files/cephmetrics-prod.repo
- dest: /etc/yum.repos.d/cephmetrics.repo
+- name: Remove old cephmetrics production repo
+ file:
+ path: /etc/yum.repos.d/cephmetrics.repo
+ state: absent
when:
- ansible_pkg_mgr == "yum"
- not devel_mode
- ansible_pkg_mgr == "yum"
- not devel_mode
-- name: Install cephmetrics production repo
- copy:
- src: files/cephmetrics-prod.repo
- dest: /etc/yum.repos.d/cephmetrics.repo
+- name: Remove old cephmetrics production repo
+ file:
+ path: /etc/yum.repos.d/cephmetrics.repo
+ state: absent
when:
- ansible_pkg_mgr == "yum"
- not devel_mode