DCD-802: Add test and logic for setting version file owner to root in

shared home
This commit is contained in:
Ben Partridge
2019-11-18 16:59:56 +11:00
parent 4827ae8423
commit 688be1f5d7
3 changed files with 28 additions and 4 deletions

View File

@@ -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: