---
- name: Get nerdctl completion
  command: "{{ bin_dir }}/nerdctl completion bash"
  changed_when: false
  register: nerdctl_completion
  check_mode: false

- name: Install nerdctl completion
  copy:
    dest: /etc/bash_completion.d/nerdctl
    content: "{{ nerdctl_completion.stdout }}"
    mode: "0644"
