Add CRI-O CI (#5460)

This commit is contained in:
Maxime Guyot
2020-04-22 15:09:52 +02:00
committed by GitHub
parent 1c187e9729
commit 09bccc97ba
13 changed files with 109 additions and 10 deletions

View File

@@ -21,7 +21,15 @@
group: no
delegate_to: "{{ inventory_hostname }}"
- name: Install crictl completion
shell: "{{ bin_dir }}/crictl completion >/etc/bash_completion.d/crictl"
ignore_errors: True
- name: Get crictl completion
shell: "{{ bin_dir }}/crictl completion"
when: ansible_distribution in ["CentOS","RedHat", "Ubuntu", "Debian"]
changed_when: False
register: cri_completion
- name: Install crictl completion
copy:
dest: /etc/bash_completion.d/crictl
content: "{{ cri_completion.stdout }}"
become: True
when: cri_completion is defined

View File

@@ -101,6 +101,14 @@
- is_ostree
- not need_bootstrap_crio.stat.exists
- name: Remove example CNI configs
file:
path: "/etc/cni/net.d/{{ item }}"
state: absent
loop:
- 100-crio-bridge.conf
- 200-loopback.conf
- name: Install cri-o config
template:
src: crio.conf.j2
@@ -126,4 +134,4 @@
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