blob: 98dcde5cdf60da61c627cc1e2dae93d9e379d677 [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...
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', '>=')