-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from xwu2intel/main
hot fix to upgrade containerd to 1.6.15
- Loading branch information
Showing
2 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
script/terraform/template/ansible/common/roles/containerd/defaults/main.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 46 additions & 11 deletions
57
script/terraform/template/ansible/common/roles/containerd/tasks/install-ubuntu.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|