add debug mode
diff --git a/tasks/with_no_proxy.yml b/tasks/with_no_proxy.yml index 218a293..7c58dea 100644 --- a/tasks/with_no_proxy.yml +++ b/tasks/with_no_proxy.yml
@@ -1,6 +1,11 @@ --- - 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_debug_mode is not defined or opdk_debug_mode | trim | lower == 'off' + +- 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_debug_mode is defined and opdk_debug_mode | trim | lower == 'on' - 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 0621d20..d550a1e 100644 --- a/tasks/with_proxy.yml +++ b/tasks/with_proxy.yml
@@ -5,6 +5,15 @@ http_proxy: "{{ http_proxy }}" https_proxy: "{{ https_proxy }}" no_proxy: "{{ no_proxy }}" + when: opdk_debug_mode is not defined or opdk_debug_mode | trim | lower == 'off' + +- name: DEBUG_MODE - Install Apigee component for version {{ opdk_version }} or greater with proxy - {{ profile }} + command: 'bash -x {{ apigee_setup }} -p {{ profile }} -f {{ opdk_installation_config_file }}' + environment: + http_proxy: "{{ http_proxy }}" + https_proxy: "{{ https_proxy }}" + no_proxy: "{{ no_proxy }}" + when: opdk_debug_mode is defined and opdk_debug_mode | trim | lower == 'on' - name: Wait for ready with no proxy command: '{{ apigee_all }} wait_for_ready'