diff --git a/ansible/roles/zun/tasks/precheck.yml b/ansible/roles/zun/tasks/precheck.yml index e8322b1e2f..e7fa94dc69 100644 --- a/ansible/roles/zun/tasks/precheck.yml +++ b/ansible/roles/zun/tasks/precheck.yml @@ -49,10 +49,9 @@ - inventory_hostname in groups['zun-cni-daemon'] - name: Ensure kuryr enabled for zun - fail: - msg: "kuryr is required but not enabled" + assert: + that: enable_kuryr | bool + fail_msg: "kuryr is required but not enabled" run_once: True - changed_when: false when: - enable_zun | bool - - not enable_kuryr | bool