DCD-686: Rename role to reflect updated functionality and exand restore functionality.

This commit is contained in:
Steve Smith
2019-10-10 11:12:18 +11:00
parent 6f56925fa1
commit 93c359d029
4 changed files with 23 additions and 16 deletions

View File

@@ -21,9 +21,9 @@
- role: linux_common - role: linux_common
- role: aws_common - role: aws_common
- role: aws_shared_fs_config - role: aws_shared_fs_config
- role: fetch_backups
- role: product_common - role: product_common
- role: product_install - role: product_install
- role: database_init - role: database_init
- role: restore_backups
- role: jira_config - role: jira_config
- role: product_startup - role: product_startup

View File

@@ -108,6 +108,8 @@
path: "{{ atl_backup_home_restore_canary_path }}" path: "{{ atl_backup_home_restore_canary_path }}"
register: restore_canary register: restore_canary
- block:
- name: Create shared home if necessary - name: Create shared home if necessary
file: file:
path: "{{ atl_product_home_shared }}" path: "{{ atl_product_home_shared }}"
@@ -115,7 +117,6 @@
mode: 0750 mode: 0750
owner: "{{ atl_product_user }}" owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}" group: "{{ atl_product_user }}"
when: restore_canary.stat.exists
- name: Restore the shared-home backup - name: Restore the shared-home backup
unarchive: unarchive:
@@ -123,7 +124,13 @@
dest: "{{ atl_product_home_shared }}" dest: "{{ atl_product_home_shared }}"
owner: "{{ atl_product_user }}" owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}" group: "{{ atl_product_user }}"
when: restore_canary.stat.exists
- name: Create restore-canary if necessary
copy:
dest: "{{ atl_backup_home_restore_canary_path }}"
content: "{{ atl_backup_id }}"
when: not restore_canary.stat.exists
when: atl_backup_manifest_url is defined and atl_backup_manifest_url != '' when: atl_backup_manifest_url is defined and atl_backup_manifest_url != ''