Install EPEL for repo_server role

The recent changes to remove EPEL and install RDO broke keystone
since some packages from EPEL are still required. This patch
ensures that the repo_server role can install packages from EPEL if
needed.

Change-Id: I85c46a522a4302542645451b9c8279a8e951fd25
Related-bug: 1670012
(cherry picked from commit 6106d6c4c9)
This commit is contained in:
Marc Gariepy 2017-03-07 13:42:48 -05:00 committed by Jesse Pretorius (odyssey4me)
parent f969818e68
commit efd2195438
1 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,15 @@
when:
- ansible_pkg_mgr == 'apt'
# NOTE: The pip_install role configures the RDO repository to be at a higher
# priority than EPEL. Packages from RDO will be preferred over EPEL.
- name: Install EPEL repository
yum:
name: epel-release
state: "{{ repo_server_package_state }}"
when:
- ansible_pkg_mgr == 'yum'
- name: Install repo server packages
package:
name: "{{ item }}"