diff --git a/tests/integration/targets/helm/tasks/test_helm_not_installed.yml b/tests/integration/targets/helm/tasks/test_helm_not_installed.yml index 2f2fd27e..27667a4d 100644 --- a/tests/integration/targets/helm/tasks/test_helm_not_installed.yml +++ b/tests/integration/targets/helm/tasks/test_helm_not_installed.yml @@ -13,3 +13,11 @@ that: - helm_missing_binary is failed - "'No such file or directory' in helm_missing_binary.msg" + when: ansible_version.full is version('2.20', '<') + +- name: Assert that helm is not installed (ansible 2.20+) + assert: + that: + - helm_missing_binary is failed + - "'Error executing command' in helm_missing_binary.msg" + when: ansible_version.full is version('2.20', '>=')