add and use common crictl role (#6978)

This commit is contained in:
Hans Feldt
2020-12-05 18:43:25 +01:00
committed by GitHub
parent 8331c1f858
commit 878fe80ca3
8 changed files with 31 additions and 48 deletions

View File

@@ -0,0 +1,12 @@
---
- name: Get crictl completion
command: "{{ bin_dir }}/crictl completion"
changed_when: False
register: cri_completion
check_mode: false
- name: Install crictl completion
copy:
dest: /etc/bash_completion.d/crictl
content: "{{ cri_completion.stdout }}"
mode: 0644