blob: adbc8c021410d1c3ef82dc233d57f135cfaf8142 [file] [log] [blame]
---
# tasks file for opdk-update-component
- block:
- name: Update apigee-setup
shell: '{{ apigee_service }} apigee-setup update'
- name: Perform component update - {{ apigee_component }}
shell: '{{ apigee_update }} -c {{ component }} -f {{ opdk_installation_config_file }}'
- name: Wait for ready
shell: '{{ apigee_all }} wait_for_ready'
when: validate_ready | default(true)
rescue:
- name: Validate status failed, trying component start...
ignore_errors: "{{ ignore_errors | default(false) }}"
shell: '{{ apigee_all }} start'
when: opdk_version | version_compare('4.16.01', '>=')
- 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', '>=')