First working release

This commit is contained in:
Adrien Reslinger 2020-05-10 21:09:17 +02:00
parent 84e5bbaf1a
commit 21574edc68
2 changed files with 20 additions and 12 deletions

View file

@ -41,7 +41,9 @@
creates: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:rhcontainerbot:container-selinux.repo
warn: no
- name: Install container-selinux GPG key
command: rpm --import https://download.copr.fedorainfracloud.org/results/rhcontainerbot/container-selinux/pubkey.gpg
command:
cmd: rpm --import https://download.copr.fedorainfracloud.org/results/rhcontainerbot/container-selinux/pubkey.gpg
warn: no
- name: Registering libcontainers repository
get_url:
@ -51,7 +53,9 @@
group: root
mode: 0644
- name: Install libcontainers GPG key
command: rpm --import http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_8/repodata/repomd.xml.key
command:
cmd: rpm --import http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_8/repodata/repomd.xml.key
warn: no
- name: Registering CRI-O 1.18 repository
get_url:
@ -61,25 +65,20 @@
group: root
mode: 0644
- name: Install CRI-O GPG key
command: rpm --import http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.18:/1.18.0/CentOS_8/repodata/repomd.xml.key
command:
cmd: rpm --import http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.18:/1.18.0/CentOS_8/repodata/repomd.xml.key
warn: no
- name: Install cri-o
- name: Update package manager list
package:
update_cache: yes
- name: Install cri-o
- name: Install cri-o package
package:
name: "{{ crio_package_name }}"
state: latest
notify: Restart cri-o
- name: Enable cri-o on boot
service:
name: cri-o
state: started
enabled: yes
- name: Ensuring /etc/crio/crio.conf.d folder exists
file:
path: "/etc/crio/crio.conf.d"
@ -96,7 +95,14 @@
owner: root
mode: 0644
with_items:
- "01-crio-runtime.conf"
- "01-cgroup-manager.conf"
- "01-log-level.conf"
- "01-metrics.conf"
notify: Restart containerd
- name: Enable cri-o on boot
service:
name: cri-o
state: restarted
enabled: yes

View file

@ -0,0 +1,2 @@
[crio.runtime]
conmon = "/usr/bin/conmon"