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: aws_common
- role: aws_shared_fs_config
- role: fetch_backups
- role: product_common
- role: product_install
- role: database_init
- role: restore_backups
- role: jira_config
- role: product_startup

View File

@@ -108,22 +108,29 @@
path: "{{ atl_backup_home_restore_canary_path }}"
register: restore_canary
- name: Create shared home if necessary
file:
path: "{{ atl_product_home_shared }}"
state: directory
mode: 0750
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
when: restore_canary.stat.exists
- block:
- name: Restore the shared-home backup
unarchive:
path: "{{ atl_backup_home_restore_canary_path }}"
dest: "{{ atl_product_home_shared }}"
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
when: restore_canary.stat.exists
- name: Create shared home if necessary
file:
path: "{{ atl_product_home_shared }}"
state: directory
mode: 0750
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
- name: Restore the shared-home backup
unarchive:
path: "{{ atl_backup_home_restore_canary_path }}"
dest: "{{ atl_product_home_shared }}"
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
- 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 != ''