Fix epel_enabled and RHEL support in bootstrap-os

Looks like `epel_enabled` was not configured for the epel install in `bootstrap-centos.yml`. Also, there were no conditionals that would trigger bootstrap for RHEL.
This commit is contained in:
Chad Swenson
2019-01-22 15:44:11 -06:00
parent e6f1c4df7f
commit 881be9b741
5 changed files with 11 additions and 4 deletions

View File

@@ -52,6 +52,7 @@
name: epel-release
state: present
when:
- epel_enabled
- not is_atomic
- package_python_pip.results | length != 0

View File

@@ -18,7 +18,7 @@
when: '"Fedora" in os_release.stdout'
- include_tasks: bootstrap-centos.yml
when: '"CentOS" in os_release.stdout'
when: '"CentOS" in os_release.stdout or "Red Hat Enterprise Linux" in os_release.stdout'
- include_tasks: bootstrap-opensuse.yml
when: '"OpenSUSE" in os_release.stdout'