| --- |
| - name: Update the ansible cache |
| hosts: planet |
| gather_facts: no |
| vars_files: |
| - ~/.apigee/credentials.yml |
| roles: |
| - { role: apigee-opdk-setup-default-settings, tags: ['cache'] } |
| |
| - name: Rolling back installation of {{ component }} on {{ hosts }} to {{ opdk_version }} |
| hosts: '{{ hosts }}' |
| gather_facts: no |
| roles: |
| - { role: apigee-opdk-setup-bootstrap-rollback, tags: ['rollback'], remove_apigee: true } |
| - { role: apigee-server-restart, tags: ['restart-server'] } |
| - { role: apigee-opdk-setup-java-home, tags: ['apigee-pre-req', 'java_home'] } |
| - { role: apigee-opdk-setup-silent-installation-config, tags: ['apigee-silent-config'], opdk_ldap_type: '2', when: "{{ groups['dc2'] is defined }}" } |
| - { role: apigee-opdk-setup-silent-installation-config, tags: ['apigee-silent-config'], opdk_ldap_type: '1', when: "{{ groups['dc2'] is not defined }}" } |
| - { role: apigee-opdk-setup-bootstrap, tags: ['apigee-pre-req', 'apigee-bootstrap'], upgrade_edge: true } |
| - { role: apigee-opdk-setup-component-installer, tags: ['apigee-component'] } |
| - { role: apigee-opdk-setup-component, profile: '{{ component }}',tags: ['apigee-component'] } |
| - { role: apigee-opdk-start-components, tags: ['apigee-component', 'start'] } |
| - { role: apigee-opdk-setup-postgres-master, tags: ['apigee-component', 'master'], when: analytics_component is defined and analytics_component == 'master' } |
| - { role: apigee-opdk-setup-postgres-standby, tags: ['apigee-component', 'standby'], when: analytics_component is defined and analytics_component == 'standby' } |