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 24d706a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 20 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
6 changes: 3 additions & 3 deletions vars/os_CentOS_8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ docker_version_map:
"19.03":
name: 'Docker-CE'
package:
- docker-ce-19.03.13
- docker-ce-cli-19.03.13
- containerd.io
- docker-ce-19.03.15
- docker-ce-cli-19.03.15
- containerd.io-1.4.3
repo: https://download.docker.com/linux/centos/docker-ce.repo
keys:
server: https://download.docker.com/linux/centos/gpg
Expand Down
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 24d706a

Please sign in to comment.