From e42c58e1f5e987fcaa9c1a8d7fbcb1c1cc498d19 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Mon, 25 Nov 2019 14:28:56 +1100 Subject: [PATCH] DCD-791: Create a link to redirect local attachments to the shared home. --- roles/confluence_config/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/confluence_config/tasks/main.yml b/roles/confluence_config/tasks/main.yml index f1e69fc..372b03a 100644 --- a/roles/confluence_config/tasks/main.yml +++ b/roles/confluence_config/tasks/main.yml @@ -13,6 +13,18 @@ - "{{ atl_product_shared_plugins }}" changed_when: false # For Molecule idempotence check +- name: Symlink local attachments to shared storage + # Create symlink to force single (unclustered) Confluence to store + # attachment in the shared drive. + file: + path: "{{ atl_product_home_shared }}/attachments/" + dest: "{{ atl_product_home }}/attachments/" + force: false + state: link + mode: 0750 + owner: "{{ atl_product_user }}" + group: "{{ atl_product_user }}" + - name: Create Tomcat server config template: