blob: 8b4e876e786a1a5bd7ce48535a155daea78bd501 [file] [log] [blame]
---
# tasks file for apigee-opdk-backup
- name: Stop component if it is not Postgres
shell: '{{ apigee_service }} {{ component_profile }} stop'
when: component_profile != 'apigee-postgresql' or component_profile != 'all'
- name: Start component if it is Postgres
shell: '{{ apigee_service }} {{ component_profile }} start'
when: component_profile == 'apigee-postgresql'
- name: Backup component {{ component_profile }}
shell: '{{ apigee_service }} {{ component_profile }} backup'
when: component_profile != 'all'
- name: Backup component {{ component_profile }}
shell: '{{ apigee_all }} backup'
when: component_profile == 'all'
- name: Start component {{ component_profile }}
shell: '{{ apigee_service }} {{ component_profile }} start'
when: component_profile != 'all'