| --- |
| - 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 |
| |
| - block: |
| |
| - name: Install Apigee Setup |
| shell: '{{ apigee_service }} apigee-setup install' |
| |
| - name: Install Apigee Admin |
| shell: '{{ apigee_service }} apigee-adminapi install' |
| |
| when: opdk_version | version_compare('4.16', '>=') and http_proxy is not defined and https_proxy is not defined |
| |
| - block: |
| |
| - name: Install Apigee Setup |
| shell: '{{ apigee_service }} apigee-setup install' |
| environment: |
| http_proxy: "{{ http_proxy }}" |
| https_proxy: "{{ https_proxy }}" |
| |
| - name: Install Apigee Admin |
| shell: '{{ apigee_service }} apigee-adminapi install' |
| environment: |
| http_proxy: "{{ http_proxy }}" |
| https_proxy: "{{ https_proxy }}" |
| |
| when: opdk_version | version_compare('4.16', '>=') and http_proxy is defined and https_proxy is defined |
| |