Manage containerd.io package with docker CRI. (#6218)

* Manage containerd.io package with docker CRI.

* Refactor common containerd stuff to separate role

* Fix check mode and unnecessary shell.
This commit is contained in:
Lovro Seder
2020-06-05 14:55:44 +02:00
committed by GitHub
parent 764a851189
commit 5dd85197af
22 changed files with 90 additions and 50 deletions

View File

@@ -22,12 +22,13 @@
delegate_to: "{{ inventory_hostname }}"
- name: Get crictl completion
shell: "{{ bin_dir }}/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 }}"
become: True
become: True