blob: 6abae2c406495212e96e073b8d45bae2f1e7f335 [file] [log] [blame]
---
# tasks file for opdk-update-component
#- block:
- name: Perform component update - {{ apigee_component }}
shell: '{{ apigee_update }} -c {{ component }} -f {{ opdk_installation_config_file }}'
# ignore_errors: yes
# - name: Wait for ready
# shell: '{{ apigee_all }} wait_for_ready'
# when: validate_ready | default(true)
## ignore_errors: yes
# rescue:
# - name: Validate status failed, trying component start...
- name: Validate status failed, trying component start...
shell: '{{ apigee_all }} start'
when: opdk_version | version_compare('4.16.01', '>=')
# ignore_errors: "{{ ignore_errors | default(false) }}"
# - name: Wait for ready
# ignore_errors: "{{ ignore_errors | default(false) }}"
# shell: '{{ apigee_all }} wait_for_ready'
# when: validate_ready | default(true)
- name: Validating component status
# ignore_errors: "{{ ignore_errors | default(false) }}"
shell: '{{ apigee_all }} status'
when: validate_ready | default(true) and opdk_version | version_compare('4.16.01', '>=')