DCD-791: Symlink both the local shared-home and attachments into the shared drive.

This commit is contained in:
Steve Smith
2019-11-25 15:36:07 +11:00
parent 7ec6e9eb37
commit b64961cb96

View File

@@ -14,11 +14,26 @@
- "{{ atl_product_shared_plugins }}" - "{{ atl_product_shared_plugins }}"
changed_when: false # For Molecule idempotence check changed_when: false # For Molecule idempotence check
- name: Symlink local attachments to shared storage
# Create symlink to force single (unclustered) Confluence to store # Create symlink to force single (unclustered) Confluence to store
# attachment in the shared drive. # shared-data and attachments in the shared drive.
- name: Symlink local attachments to shared storage
file: file:
path: "{{ atl_product_home_shared }}/attachments/" src: "{{ item[0] }}"
dest: "{{ item[1] }}"
force: false
state: link
mode: 0750
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
with_items:
- ["{{ atl_product_home_shared }}/",
"{{ atl_product_home }}/shared-home/"]
- ["{{ atl_product_home_shared }}/attachments/",
"{{ atl_product_home }}/attachments/"]
- name: Symlink local attachments to shared storage
file:
src: "{{ atl_product_home_shared }}/attachments/"
dest: "{{ atl_product_home }}/attachments/" dest: "{{ atl_product_home }}/attachments/"
force: false force: false
state: link state: link