c12s-kubespray/roles/container-engine/cri-o/tasks/crictl.yml

34 lines
885 B
YAML
Raw Normal View History

---
- name: crictl | Download crictl
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.crictl) }}"
2020-07-28 08:21:08 +00:00
- name: Install crictl config
template:
2020-07-28 08:21:08 +00:00
src: ../templates/crictl.yaml.j2 # noqa 404 not in role_path when task is included from download role
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 }}"
2020-07-28 08:39:08 +00:00
- name: Get crictl completion
command: "{{ bin_dir }}/crictl completion"
2020-04-22 13:09:52 +00:00
changed_when: False
register: cri_completion
- name: Install crictl completion
copy:
dest: /etc/bash_completion.d/crictl
content: "{{ cri_completion.stdout }}"
become: True