blob: 5e33286a78f92aa14f5ab8b29d0faf07e315cc5e [file] [log] [blame]
---
- name: Copy license file
copy:
src: "{{ opdk_license_source_file_name }}"
dest: "{{ opdk_license_target_file_path }}"
mode: 0644
force: yes
- block:
- name: Uninstall Apigee Setup, if it exists
ignore_errors: "{{ ignore_errors | default('yes') }}"
shell: '{{ apigee_service }} apigee-setup uninstall'
when: opdk_version | version_compare('4.16', '>=')
- name: Uninstall Apigee Admin, if it exists
ignore_errors: "{{ ignore_errors | default('yes') }}"
shell: '{{ apigee_service }} apigee-adminapi uninstall'
when: opdk_version | version_compare('4.16', '>=')
- name: Uninstall Apigee Provision, if it exists
ignore_errors: "{{ ignore_errors | default('yes') }}"
shell: '{{ apigee_service }} apigee-provision uninstall'
when: opdk_version | version_compare('4.16', '>=')
- name: Uninstall Apigee Migrate, if it exists
ignore_errors: "{{ ignore_errors | default('yes') }}"
shell: '{{ apigee_service }} apigee-migrate uninstall'
when: opdk_version | version_compare('4.16', '>=')
when: upgrade_edge is defined and upgrade_edge | bool == True
- name: Do not use proxy definitions
include: with_no_proxy.yml
when: opdk_version | version_compare('4.16', '>=') and (https_proxy is not defined or https_proxy | trim == '') and (http_proxy is not defined or http_proxy | trim == '')
- name: Use proxy definitions
include: with_proxy.yml
when: opdk_version | version_compare('4.16', '>=') and https_proxy is defined and https_proxy | trim != '' and http_proxy is defined and http_proxy | trim != ''