mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-06 17:07:38 -02:30
Ubuntu CRI-O (#5426)
* Fix crictl * Reload systemd daemon before enabling service * Typo * Add crictl template * Remove seccomp.json for ubuntu * Set runtime path of runc for ubuntu * Change path to conmon
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
15a8c34717
commit
ccbcad9741
27
roles/container-engine/cri-o/tasks/crictl.yml
Normal file
27
roles/container-engine/cri-o/tasks/crictl.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
- name: crictl | Download crictl
|
||||
include_tasks: "../../../download/tasks/download_file.yml"
|
||||
vars:
|
||||
download: "{{ download_defaults | combine(downloads.crictl) }}"
|
||||
|
||||
- name: Install crictl config
|
||||
template:
|
||||
src: ../templates/crictl.yaml.j2
|
||||
dest: /etc/crictl.yaml
|
||||
owner: bin
|
||||
mode: 0644
|
||||
|
||||
- name: Copy crictl binary from download dir
|
||||
synchronize:
|
||||
src: "{{ local_release_dir }}/crictl"
|
||||
dest: "{{ bin_dir }}/crictl"
|
||||
compress: no
|
||||
perms: yes
|
||||
owner: no
|
||||
group: no
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
|
||||
- name: Install crictl completion
|
||||
shell: "{{ bin_dir }}/crictl completion >/etc/bash_completion.d/crictl"
|
||||
ignore_errors: True
|
||||
when: ansible_distribution in ["CentOS","RedHat", "Ubuntu", "Debian"]
|
||||
@@ -30,11 +30,7 @@
|
||||
state: present
|
||||
when: ansible_distribution in ["Ubuntu"]
|
||||
|
||||
- name: Add CRI-O PPA
|
||||
apt_repository:
|
||||
repo: ppa:projectatomic/ppa
|
||||
state: present
|
||||
when: ansible_distribution in ["Ubuntu"]
|
||||
- include_tasks: "crictl.yml"
|
||||
|
||||
- name: Install crictl
|
||||
unarchive:
|
||||
@@ -76,6 +72,10 @@
|
||||
owner: root
|
||||
mode: 0755
|
||||
|
||||
- name: Reload systemd daemon
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
|
||||
- name: Install cri-o service
|
||||
service:
|
||||
name: "{{ crio_service }}"
|
||||
|
||||
Reference in New Issue
Block a user