2019-12-19 12:37:57 +00:00
|
|
|
---
|
|
|
|
- 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
|
2019-12-19 12:37:57 +00:00
|
|
|
template:
|
2020-12-05 17:43:25 +00:00
|
|
|
src: crictl.yaml.j2
|
2019-12-19 12:37:57 +00:00
|
|
|
dest: /etc/crictl.yaml
|
|
|
|
owner: bin
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- name: Copy crictl binary from download dir
|
2020-11-30 23:12:50 +00:00
|
|
|
copy:
|
2019-12-19 12:37:57 +00:00
|
|
|
src: "{{ local_release_dir }}/crictl"
|
|
|
|
dest: "{{ bin_dir }}/crictl"
|
2020-11-30 23:12:50 +00:00
|
|
|
mode: 0755
|
|
|
|
remote_src: true
|
2020-12-05 17:43:25 +00:00
|
|
|
notify:
|
|
|
|
- Get crictl completion
|
|
|
|
- Install crictl completion
|
2019-12-19 12:37:57 +00:00
|
|
|
|
2020-12-05 17:43:25 +00:00
|
|
|
- name: Set fact crictl_installed
|
|
|
|
set_fact:
|
|
|
|
crictl_installed: true
|