mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-791: Use nested lists.
This commit is contained in:
@@ -18,18 +18,19 @@
|
|||||||
# shared-data and attachments in the shared drive.
|
# shared-data and attachments in the shared drive.
|
||||||
- name: Symlink local attachments to shared storage
|
- name: Symlink local attachments to shared storage
|
||||||
file:
|
file:
|
||||||
src: "{{ item.from }}"
|
src: "{{ item.0 }}"
|
||||||
dest: "{{ item.to }}"
|
dest: "{{ item.1 }}"
|
||||||
force: false
|
force: false
|
||||||
state: link
|
state: link
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ atl_product_user }}"
|
owner: "{{ atl_product_user }}"
|
||||||
group: "{{ atl_product_user }}"
|
group: "{{ atl_product_user }}"
|
||||||
with_items:
|
vars:
|
||||||
- {from:: "{{ atl_product_home_shared }}/",
|
- links:
|
||||||
to: "{{ atl_product_home }}/shared-home/"}
|
- ["{{ atl_product_home_shared }}/", "{{ atl_product_home }}/shared-home/"]
|
||||||
- {from: "{{ atl_product_home_shared }}/attachments/",
|
- ["{{ atl_product_home_shared }}/attachments/", "{{ atl_product_home }}/attachments/"]
|
||||||
to: "{{ atl_product_home }}/attachments/"}
|
with_nested:
|
||||||
|
- "{{ links }}"
|
||||||
|
|
||||||
- name: Create Tomcat server config
|
- name: Create Tomcat server config
|
||||||
template:
|
template:
|
||||||
|
|||||||
Reference in New Issue
Block a user