/
shared_folders.yml
38 lines (35 loc) · 1.09 KB
/
shared_folders.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
- name: Create shared folders
file:
path: "{{ RAILS_APP_SHARED_PATH }}/{{ item }}"
state: directory
with_flattened:
- "{{ rails_deploy_shared_folders }}"
- "{{ rails_deploy_custom_shared_folders }}"
- "{{ rails_deploy_custom_shared_webpacker_folders if rails_webpacker else [] }}"
- name: Link shared folders
file:
src: "{{ RAILS_APP_SHARED_PATH }}/{{ item }}"
path: "{{ RAILS_APP_RELEASE_PATH }}/{{ item }}"
state: link
force: yes
with_flattened:
- "{{ rails_deploy_shared_folders }}"
- "{{ rails_deploy_custom_shared_folders }}"
- "{{ rails_deploy_custom_shared_webpacker_folders if rails_webpacker else [] }}"
- name: Link shared files
file:
src: "{{ RAILS_APP_SHARED_PATH }}/{{ item }}"
path: "{{ RAILS_APP_RELEASE_PATH }}/{{ item }}"
state: link
force: yes
with_flattened:
- "{{ rails_shared_files }}"
- name: Link provisioned files
file:
src: "{{ RAILS_APP_SHARED_PATH }}/{{ item.file }}"
path: "{{ RAILS_APP_RELEASE_PATH }}/{{ item.file }}"
state: link
force: yes
with_flattened:
- "{{ rails_provisioned_files }}"