Skip to content

Commit

Permalink
Merge pull request #9 from xwu2intel/main
Browse files Browse the repository at this point in the history
hot fix to upgrade containerd to 1.6.15
  • Loading branch information
xwu2intel authored Jan 20, 2023
2 parents 0523051 + 3e6fe1f commit 457b8c3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

docker_dist_repo: "https://download.docker.com"
containerd_default_version:
ubuntu: "1.5.9-*"
ubuntu: "1.6.15-*"
centos: "1.6.10-*"
debian: "1.4.13~*"
containerd_data_root: "/var/lib/containerd"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,48 @@

- name: install containerd
apt:
name:
- "containerd={{ containerd_version | default(containerd_default_version['ubuntu']) }}"
state: present
update_cache: yes
become: yes
register: aptrc
until: aptrc is success
retries: 10
delay: 10
- name: add software dependencies
apt:
name:
- ca-certificates
- gnupg
state: present
ignore_errors: yes
become: yes
register: aptrc
until: aptrc is success
retries: 10
delay: 10


- name: add docker GPG key
apt_key:
url: "{{ docker_dist_repo }}/linux/ubuntu/gpg"
state: present
register: aptrc
become: yes
until: aptrc is success
retries: 10
delay: 10

- name: get os codename
shell:
cmd: ". /etc/os-release; echo $VERSION_CODENAME"
executable: /bin/bash
register: codename

- name: add docker repository to apt
apt_repository:
repo: "deb {{ docker_dist_repo }}/linux/ubuntu {{ codename.stdout | lower }} stable"
state: present
become: yes

- name: install containerd.io
apt:
name:
- "containerd.io={{ containerd_default_version['ubuntu'] }}"
update_cache: yes
register: aptrc
become: yes
until: aptrc is success
retries: 10
delay: 10

0 comments on commit 457b8c3

Please sign in to comment.