2019-06-29 21:09:20 +00:00
|
|
|
---
|
|
|
|
- name: crictl | Download crictl
|
2019-07-11 06:46:54 +00:00
|
|
|
include_tasks: "../../../download/tasks/download_file.yml"
|
2019-06-29 21:09:20 +00:00
|
|
|
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 }}"
|
|
|
|
|
2020-04-29 16:08:25 +00:00
|
|
|
- name: Get crictl completion
|
|
|
|
shell: "{{ bin_dir }}/crictl completion"
|
|
|
|
changed_when: False
|
|
|
|
register: cri_completion
|
|
|
|
|
2019-06-29 21:09:20 +00:00
|
|
|
- name: Install crictl completion
|
2020-04-29 16:08:25 +00:00
|
|
|
copy:
|
|
|
|
dest: /etc/bash_completion.d/crictl
|
|
|
|
content: "{{ cri_completion.stdout }}"
|
|
|
|
become: True
|