| --- |
| # tasks file for apigee-opdk-start-components |
| - block: |
| |
| - name: Start a specific Apigee component on the node |
| shell: '{{ apigee_service }} {{ component_name }} start' |
| environment: |
| http_proxy: "{{ http_proxy }}" |
| https_proxy: "{{ https_proxy }}" |
| no_proxy: "{{ no_proxy }}" |
| PORT_TIMEOUT: '{{ port_timeout | default(60) }}' |
| UP_TIMEOUT: '{{ up_timeout | default(60) }}' |
| when: opdk_debug_mode is not defined or opdk_debug_mode | trim | lower == 'off' |
| |
| - name: Wait for ready on a specific Apigee component |
| ignore_errors: "{{ ignore_errors | default (true) }}" |
| shell: '{{ apigee_service }} {{ component_name }} wait_for_ready' |
| environment: |
| http_proxy: "{{ http_proxy }}" |
| https_proxy: "{{ https_proxy }}" |
| no_proxy: "{{ no_proxy }}" |
| PORT_TIMEOUT: '{{ port_timeout | default(60) }}' |
| UP_TIMEOUT: '{{ up_timeout | default(60) }}' |
| when: wait_for_ready | default(false) and opdk_debug_mode is not defined or opdk_debug_mode | trim | lower == 'off' |
| |
| - name: DEBUG_MODE - Start a specific Apigee component on the node |
| shell: '{{ apigee_service }} {{ component_name }} start' |
| environment: |
| http_proxy: "{{ http_proxy }}" |
| https_proxy: "{{ https_proxy }}" |
| no_proxy: "{{ no_proxy }}" |
| PORT_TIMEOUT: '{{ port_timeout | default(60) }}' |
| UP_TIMEOUT: '{{ up_timeout | default(60) }}' |
| when: opdk_debug_mode is defined and opdk_debug_mode | trim | lower == 'on' |
| |
| - name: DEBUG_MODE - Wait for ready on a specific Apigee component |
| ignore_errors: "{{ ignore_errors | default (true) }}" |
| shell: '{{ apigee_service }} {{ component_name }} wait_for_ready' |
| environment: |
| http_proxy: "{{ http_proxy }}" |
| https_proxy: "{{ https_proxy }}" |
| no_proxy: "{{ no_proxy }}" |
| PORT_TIMEOUT: '{{ port_timeout | default(60) }}' |
| UP_TIMEOUT: '{{ up_timeout | default(60) }}' |
| when: wait_for_ready | default(false) and opdk_debug_mode is defined and opdk_debug_mode | trim | lower == 'on' |
| |
| when: component_name != 'all' and opdk_version | version_compare('4.16.01', '>=') |
| |
| - block: |
| |
| - name: Start all Apigee components on the node |
| shell: '{{ apigee_all }} start' |
| environment: |
| http_proxy: "{{ http_proxy }}" |
| https_proxy: "{{ https_proxy }}" |
| no_proxy: "{{ no_proxy }}" |
| PORT_TIMEOUT: '{{ port_timeout | default(60) }}' |
| UP_TIMEOUT: '{{ up_timeout | default(60) }}' |
| when: opdk_debug_mode is not defined or opdk_debug_mode | trim | lower == 'off' |
| |
| - name: Wait for ready on all Apigee components on the node |
| ignore_errors: "{{ ignore_errors | default (true) }}" |
| shell: '{{ apigee_all }} wait_for_ready' |
| environment: |
| http_proxy: "{{ http_proxy }}" |
| https_proxy: "{{ https_proxy }}" |
| no_proxy: "{{ no_proxy }}" |
| PORT_TIMEOUT: '{{ port_timeout | default(60) }}' |
| UP_TIMEOUT: '{{ up_timeout | default(60) }}' |
| when: wait_for_ready | default(false) and opdk_debug_mode is not defined or opdk_debug_mode | trim | lower == 'off' |
| |
| - name: DEBUG_MODE - Start all Apigee components on the node |
| shell: '{{ apigee_all }} start' |
| environment: |
| http_proxy: "{{ http_proxy }}" |
| https_proxy: "{{ https_proxy }}" |
| no_proxy: "{{ no_proxy }}" |
| PORT_TIMEOUT: '{{ port_timeout | default(60) }}' |
| UP_TIMEOUT: '{{ up_timeout | default(60) }}' |
| when: opdk_debug_mode is defined and opdk_debug_mode | trim | lower == 'on' |
| |
| - name: DEBUG_MODE - Wait for ready on all Apigee components on the node |
| ignore_errors: "{{ ignore_errors | default (true) }}" |
| shell: '{{ apigee_all }} wait_for_ready' |
| environment: |
| http_proxy: "{{ http_proxy }}" |
| https_proxy: "{{ https_proxy }}" |
| no_proxy: "{{ no_proxy }}" |
| PORT_TIMEOUT: '{{ port_timeout | default(60) }}' |
| UP_TIMEOUT: '{{ up_timeout | default(60) }}' |
| when: wait_for_ready | default(false) and opdk_debug_mode is defined and opdk_debug_mode | trim | lower == 'on' |
| |
| when: component_name is not defined or (component_name == 'all' and opdk_version | version_compare('4.16.01', '>=') ) |