mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-802: Add test and logic for setting version file owner to root in
shared home
This commit is contained in:
@@ -20,14 +20,23 @@
|
||||
dest: "{{ atl_product_home_shared }}"
|
||||
mode: 0640
|
||||
|
||||
- name: Set shared home file owner to application user
|
||||
- name: Set shared home owner and group to application user
|
||||
file:
|
||||
path: "{{ atl_product_home_shared }}"
|
||||
recurse: yes
|
||||
group: "{{ atl_product_user }}"
|
||||
owner: "{{ atl_product_user }}"
|
||||
state: directory
|
||||
mode: 0640
|
||||
owner: "{{ atl_product_user }}"
|
||||
|
||||
- name: Set version file owner and group to root
|
||||
file:
|
||||
path: "{{ atl_product_version_cache }}"
|
||||
group: root
|
||||
owner: root
|
||||
state: file
|
||||
# Ignore the error in case there is no product version file in the backup
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Create restore-canary if necessary
|
||||
copy:
|
||||
|
||||
Reference in New Issue
Block a user