File tree Expand file tree Collapse file tree 2 files changed +48
-12
lines changed
script/terraform/template/ansible/common/roles/containerd Expand file tree Collapse file tree 2 files changed +48
-12
lines changed Original file line number Diff line number Diff line change 11
2+ docker_dist_repo : " https://download.docker.com"
23containerd_default_version :
3- ubuntu : " 1.5.9 -*"
4+ ubuntu : " 1.6.15 -*"
45 centos : " 1.6.10-*"
56 debian : " 1.4.13~*"
67containerd_data_root : " /var/lib/containerd"
Original file line number Diff line number Diff line change 11
2- - name : install containerd
3- apt :
4- name :
5- - " containerd={{ containerd_version | default(containerd_default_version['ubuntu']) }}"
6- state : present
7- update_cache : yes
8- become : yes
9- register : aptrc
10- until : aptrc is success
11- retries : 10
12- delay : 10
2+ - name : add software dependencies
3+ apt :
4+ name :
5+ - ca-certificates
6+ - gnupg
7+ state : present
8+ ignore_errors : yes
9+ become : yes
10+ register : aptrc
11+ until : aptrc is success
12+ retries : 10
13+ delay : 10
14+
15+
16+ - name : add docker GPG key
17+ apt_key :
18+ url : " {{ docker_dist_repo }}/linux/ubuntu/gpg"
19+ state : present
20+ register : aptrc
21+ become : yes
22+ until : aptrc is success
23+ retries : 10
24+ delay : 10
25+
26+ - name : get os codename
27+ shell :
28+ cmd : " . /etc/os-release; echo $VERSION_CODENAME"
29+ executable : /bin/bash
30+ register : codename
31+
32+ - name : add docker repository to apt
33+ apt_repository :
34+ repo : " deb {{ docker_dist_repo }}/linux/ubuntu {{ codename.stdout | lower }} stable"
35+ state : present
36+ become : yes
37+
38+ - name : install containerd.io
39+ apt :
40+ name :
41+ - " containerd.io={{ containerd_default_version['ubuntu'] }}"
42+ update_cache : yes
43+ register : aptrc
44+ become : yes
45+ until : aptrc is success
46+ retries : 10
47+ delay : 10
1348
You can’t perform that action at this time.
0 commit comments