add containerd support for Amazon Linux 2 (#7595)
parent
d5660cd37c
commit
d90baa8601
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
containerd_package: containerd
|
||||||
|
containerd_versioned_pkg:
|
||||||
|
'latest': "{{ containerd_package }}"
|
||||||
|
'1.3.2': "{{ containerd_package }}-1.3.2-1.amzn{{ ansible_distribution_major_version }}"
|
||||||
|
'1.4.1': "{{ containerd_package }}-1.4.1-2.amzn{{ ansible_distribution_major_version }}"
|
||||||
|
'1.4.4': "{{ containerd_package }}-1.4.4-1.amzn{{ ansible_distribution_major_version }}"
|
||||||
|
'stable': "{{ containerd_package }}-1.4.4-1.amzn{{ ansible_distribution_major_version }}"
|
||||||
|
'edge': "{{ containerd_package }}-1.4.4-1.amzn{{ ansible_distribution_major_version }}"
|
|
@ -31,4 +31,4 @@
|
||||||
dest: "{{ yum_repo_dir }}/containerd.repo"
|
dest: "{{ yum_repo_dir }}/containerd.repo"
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == "RedHat"
|
- ansible_os_family == "RedHat"
|
||||||
- ansible_distribution != "Fedora"
|
- ansible_distribution not in ["Fedora", "Amazon"]
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
fail:
|
fail:
|
||||||
msg: "{{ ansible_distribution }} is not supported by containerd."
|
msg: "{{ ansible_distribution }} is not supported by containerd."
|
||||||
when:
|
when:
|
||||||
- not ansible_distribution in ["CentOS", "OracleLinux", "RedHat", "Ubuntu", "Debian", "Fedora", "AlmaLinux"]
|
- not ansible_distribution in ["CentOS", "OracleLinux", "RedHat", "Ubuntu", "Debian", "Fedora", "AlmaLinux", "Amazon"]
|
||||||
|
|
||||||
- name: gather os specific variables
|
- name: gather os specific variables
|
||||||
include_vars: "{{ item }}"
|
include_vars: "{{ item }}"
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
containerd_package_info:
|
||||||
|
enablerepo: "amzn2extra-docker"
|
||||||
|
pkgs:
|
||||||
|
- "{{ containerd_versioned_pkg[containerd_version | string] }}"
|
Loading…
Reference in New Issue