Add molecule tests to containerd role (#6037)

This commit is contained in:
Maxime Guyot
2020-04-29 18:08:25 +02:00
committed by GitHub
parent db5f83f8c9
commit e4c820c35e
5 changed files with 74 additions and 3 deletions

View File

@@ -21,7 +21,13 @@
group: no
delegate_to: "{{ inventory_hostname }}"
- name: Get crictl completion
shell: "{{ bin_dir }}/crictl completion"
changed_when: False
register: cri_completion
- name: Install crictl completion
shell: "{{ bin_dir }}/crictl completion >/etc/bash_completion.d/crictl"
ignore_errors: True
when: ansible_distribution in ["CentOS","RedHat", "Ubuntu", "Debian"]
copy:
dest: /etc/bash_completion.d/crictl
content: "{{ cri_completion.stdout }}"
become: True