blob: 23cd6e8d323fb1fc03aa4d6cf43092dabec2c8ed [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 {{ apigee_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
shell: '{{ apigee_all }} status'
when: opdk_version | version_compare('4.16.01', '>=')