Install EPEL for os_horizon

The horizon role needs EPEL for some packages and this patch
installs EPEL before installing distro packages with yum.

Closes-Bug: 1670790
Change-Id: Ie4964590ba8c7e32d7f204879531b053f422b5c9
This commit is contained in:
Major Hayden 2017-03-07 12:44:33 -06:00 committed by Jesse Pretorius (odyssey4me)
parent f30a914f64
commit 1cdcff8106

View File

@ -44,6 +44,15 @@
- { src: "/var/log/httpd", dest: "/var/log/apache2" }
when: ansible_pkg_mgr == 'yum'
# 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: "{{ horizon_package_state }}"
when:
- ansible_pkg_mgr == 'yum'
- name: Install distro packages
package:
name: "{{ item }}"