This commit is contained in:
parent
69d4405a34
commit
1c88a7d22e
2 changed files with 105 additions and 99 deletions
|
|
@ -1,2 +1,3 @@
|
||||||
---
|
---
|
||||||
crio_debug: false
|
crio_debug: false
|
||||||
|
crio_version: "1.19"
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
---
|
---
|
||||||
|
- name: CRI-O setup
|
||||||
|
block:
|
||||||
- name: Include vars for {{ ansible_os_family }}
|
- name: Include vars for {{ ansible_os_family }}
|
||||||
include_vars: "{{ ansible_os_family }}.yml"
|
include_vars: "{{ ansible_os_family }}.yml"
|
||||||
|
|
||||||
|
|
@ -58,16 +60,16 @@
|
||||||
cmd: rpm --import https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_{{ ansible_distribution_major_version }}/repodata/repomd.xml.key
|
cmd: rpm --import https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_{{ ansible_distribution_major_version }}/repodata/repomd.xml.key
|
||||||
warn: no
|
warn: no
|
||||||
|
|
||||||
- name: Registering CRI-O 1.18 repository
|
- name: Registering CRI-O {{ crio_version }} repository
|
||||||
get_url:
|
get_url:
|
||||||
url: https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.18/CentOS_{{ ansible_distribution_major_version }}/devel:kubic:libcontainers:stable:cri-o:1.18.repo
|
url: "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/{{ crio_version }}/CentOS_{{ ansible_distribution_major_version }}/devel:kubic:libcontainers:stable:cri-o:{{ crio_version }}.repo"
|
||||||
dest: /etc/yum.repos.d/devel:kubic:libcontainers:stable:cri-o:1.18.repo
|
dest: "/etc/yum.repos.d/devel:kubic:libcontainers:stable:cri-o:{{ crio_version }}.repo"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
- name: Install CRI-O GPG key
|
- name: Install CRI-O GPG key
|
||||||
command:
|
command:
|
||||||
cmd: rpm --import https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.18/CentOS_{{ ansible_distribution_major_version }}/repodata/repomd.xml.key
|
cmd: rpm --import https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/{{ crio_version }}/CentOS_{{ ansible_distribution_major_version }}/repodata/repomd.xml.key
|
||||||
warn: no
|
warn: no
|
||||||
|
|
||||||
- name: Update package manager list
|
- name: Update package manager list
|
||||||
|
|
@ -108,3 +110,6 @@
|
||||||
name: cri-o
|
name: cri-o
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
|
tags:
|
||||||
|
- crio
|
||||||
Loading…
Add table
Add a link
Reference in a new issue