diff --git a/tasks/main.yml b/tasks/main.yml index 5e3d94e..7024d83 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -10,6 +10,7 @@ - name: fail if cri-o is not avaliable fail: msg: "crictl needs to be installed" + when: "'cri-o' not in ansible_facts.packages" tags: [ "cleanup", "prepare" ] - name: delete unused images