Browse Source

workaround RHEL

tags/0.0.4^2
Morgan WAHBI 9 months ago
parent
commit
d181e1a9c0
4 changed files with 76 additions and 0 deletions
  1. +4
    -0
      CHANGELOG.md
  2. +1
    -0
      defaults/main.yml
  3. +62
    -0
      files/docker-ce.repo
  4. +9
    -0
      tasks/setup-RedHat.yml

+ 4
- 0
CHANGELOG.md View File

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

## 0.0.4

* workaround: docker repo bugged for rhel

## 0.0.3

* fix: RHEL 7.8, match new repo name


+ 1
- 0
defaults/main.yml View File

@@ -20,3 +20,4 @@ docker_yum_repo_enable_edge: 0
docker_yum_repo_enable_test: 0

docker_users: []
docker_repo_workaround: false

+ 62
- 0
files/docker-ce.repo View File

@@ -0,0 +1,62 @@
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/centos/7/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-stable-debuginfo]
name=Docker CE Stable - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-stable-source]
name=Docker CE Stable - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-test]
name=Docker CE Test - $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-test-debuginfo]
name=Docker CE Test - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-test-source]
name=Docker CE Test - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-nightly]
name=Docker CE Nightly - $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-nightly-debuginfo]
name=Docker CE Nightly - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-nightly-source]
name=Docker CE Nightly - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

+ 9
- 0
tasks/setup-RedHat.yml View File

@@ -20,6 +20,15 @@
group: root
mode: 0644

- name: 'replace repo file'
copy:
src: 'docker-ce.repo'
dest: '/etc/yum.repos.d/docker-ce.repo'
owner: root
group: root
mode: 0644
when: "{{ docker_repo_workaround }}"

- name: 'Configure Docker Edge repo'
ini_file:
dest: '/etc/yum.repos.d/docker-{{ docker_edition }}.repo'


Loading…
Cancel
Save