blob: 591e3c0c0db8e7fbd5374b16877b0cf1ad2264a7 [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: yes
shell: '{{ apigee_service }} apigee-setup uninstall'
when: opdk_version | version_compare('4.16', '>=')
- name: Uninstall Apigee Admin, if it exists
ignore_errors: yes
shell: '{{ apigee_service }} apigee-adminapi uninstall'
when: opdk_version | version_compare('4.16', '>=')
- name: Uninstall Apigee Provision, if it exists
ignore_errors: yes
shell: '{{ apigee_service }} apigee-provision uninstall'
when: opdk_version | version_compare('4.16', '>=')
- name: Uninstall Apigee Migrate, if it exists
ignore_errors: 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', '>=')