---
- name: Cridockerd | Stop and disable the cri-dockerd system service
  ignore_errors: true
  command: |
    systemctl stop cri-dockerd.service
    systemctl disable cri-dockerd.service
    rm -rf /etc/systemd/system/cri-dockerd.service*
    systemctl daemon-reload
    systemctl reset-failed cri-dockerd.service

- name: Cridockerd | Remove all cri-dockerd related files and binaries
  command: |
    rm -rf /etc/cri-dockerd
    rm -f /usr/local/bin/cri-dockerd