Browse Source

Fix rhel installation (extra repo)

tags/0.0.2^2
Julien Cabillot 1 year ago
parent
commit
41c7f2d47a
No known key found for this signature in database GPG Key ID: EF8F0EB0565E282F
3 changed files with 13 additions and 2 deletions
  1. +5
    -0
      CHANGELOG.md
  2. +3
    -0
      kitchen.yml
  3. +5
    -2
      tasks/setup-RedHat.yml

+ 5
- 0
CHANGELOG.md View File

@@ -0,0 +1,5 @@
# CHANGELOG

## 0.0.2

* Fix RHEL installation (extra repo)

+ 3
- 0
kitchen.yml View File

@@ -38,6 +38,9 @@ platforms:
- name: "rhel-7"
driver:
instance_type: "t3.small"
image_search:
name: "RHEL-7.*_HVM_GA*"
owner-id: "309956199498"
tags:
Name: "tk-ansible-role-docker"
kitchen: "true"


+ 5
- 2
tasks/setup-RedHat.yml View File

@@ -36,8 +36,11 @@

# To install docker-ce, we need container-selinux available from an extras repo.
# The repository name depends of the environment (AWS RHEL AMI has a specific naming).
- name: "Find extra repos"
shell: "set -o pipefail; yum repolist all | egrep -e '^rhui-REGION-rhel-server-extras' -e '^rhel-7-server-extras-rpms' | cut -d'/' -f1"
- name: 'Find extra repos'
shell:
cmd: |
set -o pipefail;
yum repolist all | egrep -e '^[!*]?rhui-REGION-rhel-server-extras' -e '^[!*]?rhel-7-server-extras-rpms' | sed -r 's#^[!*]?([^/]*)/.*#\1#'
args:
warn: no
register: "redhat_extrarepo"


Loading…
Cancel
Save