Add epel repository

We are facing a centos job failure in [1]
due to a dependency of lttng-ust package
that is not being satisfied when ceph packages
are meant to be installed.

[1] https://review.openstack.org/#/c/593362/2

Change-Id: Ib0fe5c8d89c5743d9dfd7da2913862aac7d75946
This commit is contained in:
Guilherme Steinmüller 2018-08-21 23:51:43 -03:00
parent 27d5b8d0bb
commit 123936aade
1 changed files with 27 additions and 0 deletions

View File

@ -13,6 +13,33 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Install EPEL gpg keys
rpm_key:
key: "http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7"
state: present
when:
- ansible_pkg_mgr in ['yum','dnf']
register: _add_yum_keys
until: _add_yum_keys is success
retries: 5
delay: 2
- name: Install the EPEL repository
yum_repository:
name: ceph-client-deps
baseurl: "{{ (centos_epel_mirror | default ('http://download.fedoraproject.org/pub/epel')) ~ '/' ~ ansible_distribution_major_version ~ '/' ~ ansible_architecture }}"
description: 'Extra Packages for Enterprise Linux 7 - $basearch'
gpgcheck: yes
enabled: yes
state: present
includepkgs: 'lttng-ust*, userspace-rcu, libbabeltrace, leveldb'
when:
- ansible_pkg_mgr in ['yum', 'dnf']
register: install_epel_repo
until: install_epel_repo is success
retries: 5
delay: 2
- name: Add ceph rpm key
rpm_key:
key: "{{ ceph_gpg_keys }}"