Skip to content

Commit

Permalink
Pin containerd for centos and ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
obierlaire committed Jul 15, 2021
1 parent bec0660 commit 0a138f0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 21 deletions.
9 changes: 1 addition & 8 deletions tasks/base/CentOS-8/install_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,14 @@
name: "{{ docker_version_map[docker_version]['name'] }}"
description: "Docker repository"
file: docker-ce
baseurl: https://download.docker.com/linux/centos/7/x86_64/stable
baseurl: "{{ docker_version_map[docker_version]['repo'] }}"
enabled: yes
gpgcheck: no
when: docker_version == '19.03'
register: repo_installed
retries: 10
delay: 30
until: repo_installed is success

- name: Install containerd separately (CentOS 8).
package:
name: https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.13-3.2.el7.x86_64.rpm
state: present
when: ansible_distribution_major_version | int == 8

- name: Install docker
package:
name: "{{ docker_version_map[docker_version]['package'] }}"
Expand Down
6 changes: 3 additions & 3 deletions vars/os_CentOS_7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ docker_version_map:
"18.09":
name: 'Docker-CE'
package:
- docker-ce-18.09.2
- docker-ce-cli-18.09.2
- containerd.io
- docker-ce-18.09.9
- docker-ce-cli-18.09.9
- containerd.io-1.4.3
repo: https://download.docker.com/linux/centos/7/x86_64/stable
keys:
server: https://download.docker.com/linux/centos/gpg
8 changes: 4 additions & 4 deletions vars/os_CentOS_8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ docker_version_map:
"19.03":
name: 'Docker-CE'
package:
- docker-ce-19.03.13
- docker-ce-cli-19.03.13
- containerd.io
repo: https://download.docker.com/linux/centos/docker-ce.repo
- docker-ce-19.03.15
- docker-ce-cli-19.03.15
- containerd.io-1.4.3
repo: https://download.docker.com/linux/centos/8/x86_64/stable
keys:
server: https://download.docker.com/linux/centos/gpg
id: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
6 changes: 3 additions & 3 deletions vars/os_Ubuntu_16.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ bootloader_update_command: update-grub
docker_version_map:
"18.09":
package:
- docker-ce=5:18.09.2*
- docker-ce-cli=5:18.09.2*
- containerd.io
- docker-ce=5:18.09.9*
- docker-ce-cli=5:18.09.9*
- containerd.io=1.4.3-1*
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
keys:
server: https://download.docker.com/linux/ubuntu/gpg
Expand Down
6 changes: 3 additions & 3 deletions vars/os_Ubuntu_18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ bootloader_update_command: update-grub
docker_version_map:
"19.03":
package:
- docker-ce=5:19.03.13*
- docker-ce-cli=5:19.03.13*
- containerd.io
- docker-ce=5:19.03.15*
- docker-ce-cli=5:19.03.15*
- containerd.io=1.4.3-1*
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
keys:
server: https://download.docker.com/linux/ubuntu/gpg
Expand Down

0 comments on commit 0a138f0

Please sign in to comment.