DCD-791: Ansible flattens nested lists, so use maps.

This commit is contained in:
Steve Smith
2019-11-25 16:24:14 +11:00
parent d02b7a6e4e
commit deff784b6a

View File

@@ -18,18 +18,18 @@
# 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[0] }}" src: "{{ item.from }}"
dest: "{{ item[1] }}" dest: "{{ item.to }}"
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: with_items:
- ["{{ atl_product_home_shared }}/", - {from:: "{{ atl_product_home_shared }}/",
"{{ atl_product_home }}/shared-home/"] to: "{{ atl_product_home }}/shared-home/"}
- ["{{ atl_product_home_shared }}/attachments/", - {from: "{{ atl_product_home_shared }}/attachments/",
"{{ atl_product_home }}/attachments/"] to: "{{ atl_product_home }}/attachments/"}
- name: Create Tomcat server config - name: Create Tomcat server config
template: template: