Added failure if apigee-service is not installed.
diff --git a/tasks/main.yml b/tasks/main.yml index ae52ba1..9814c9e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -106,3 +106,13 @@ when: opdk_version | version_compare('4.16.01', '>') when: archive_folder is defined and not archive_folder == '' + +- name: Validate that apigee-service exists + stat: + path: "{{ apigee_installation_home }}/apigee-service/bin/apigee-service" + register: apigee-service + +- name: Fail if apigee-service is not installed + fail: + msg: "apigee-service was not installed" + when: not apigee-service.stat.exists