updated to force failure if installation failes
diff --git a/tasks/no_proxy.yml b/tasks/no_proxy.yml
index 97408aa..c8e5a54 100644
--- a/tasks/no_proxy.yml
+++ b/tasks/no_proxy.yml
@@ -2,6 +2,12 @@
- name: Install Apigee component for version {{ opdk_version }} or greater with no proxy - {{ profile }}
command: '{{ apigee_setup }} -p {{ profile }} -f {{ opdk_installation_config_file }}'
when: opdk_version | version_compare('4.16.01', '>=')
+ register: result
+
+- name: Installation with no proxy failed
+ fail:
+ msg: "Apigee Component failed
+ when: result | failed
- name: Wait for ready with no proxy
command: '{{ apigee_all }} wait_for_ready'
diff --git a/tasks/with_proxy.yml b/tasks/with_proxy.yml
index 3c6ff8b..8bf9cc4 100644
--- a/tasks/with_proxy.yml
+++ b/tasks/with_proxy.yml
@@ -6,6 +6,12 @@
http_proxy: "{{ http_proxy }}"
https_proxy: "{{ https_proxy }}"
no_proxy: "{{ no_proxy }}"
+ register: result
+
+- name: Installation with proxy failed
+ fail:
+ msg: "Apigee Component failed
+ when: result | failed
- name: Wait for ready with no proxy
command: '{{ apigee_all }} wait_for_ready'