mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-07 02:27:43 +03:00
Centos, debian and fedora CRI-O repo (#6008)
* replace removed repo with kubic repository for centos 7 * add crio configuration for centos8 * add crio configurations for debian * use correct crio version for fedora * simplify calulation of required crio version - gives possibility to overwrite * change default path for runc * change default for seccomp path * change default for conmon
This commit is contained in:
@@ -48,6 +48,21 @@
|
||||
with_items: "{{ crio_packages }}"
|
||||
notify: restart crio
|
||||
|
||||
- name: Gather the rpm package facts
|
||||
package_facts:
|
||||
manager: auto
|
||||
when:
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_distribution_major_version == "8"
|
||||
|
||||
- name: Ensure latest version of libseccom installed
|
||||
command: "yum update -y libseccomp"
|
||||
when:
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_distribution_major_version == "8"
|
||||
- ansible_facts.packages['libseccomp'] | map(attribute='version') | map('regex_replace','^(?P<major>\\d+).(?P<minor>\\d+).(?P<patch>\\d+)$', '\\g<major>.\\g<minor>') | list | first == '2.3'
|
||||
notify: restart crio
|
||||
|
||||
- name: Check if already installed
|
||||
stat:
|
||||
path: "/bin/crio"
|
||||
@@ -96,9 +111,20 @@
|
||||
owner: root
|
||||
mode: 0755
|
||||
|
||||
- name: Remove metacopy mount options for older kernels
|
||||
ini_file:
|
||||
dest: /etc/containers/storage.conf
|
||||
section: storage.options.overlay
|
||||
option: mountopt
|
||||
value: "\"nodev\""
|
||||
when:
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_distribution_major_version == "7"
|
||||
|
||||
|
||||
- name: Write cri-o proxy drop-in
|
||||
template:
|
||||
src: http-proxy.conf.j2
|
||||
dest: /etc/systemd/system/crio.service.d/http-proxy.conf
|
||||
notify: restart crio
|
||||
when: http_proxy is defined or https_proxy is defined
|
||||
when: http_proxy is defined or https_proxy is defined
|
||||
|
||||
Reference in New Issue
Block a user