From deff784b6aae4fde1b5d6228c50d969c92aa5ddb Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Mon, 25 Nov 2019 16:24:14 +1100 Subject: [PATCH] DCD-791: Ansible flattens nested lists, so use maps. --- roles/confluence_config/tasks/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/confluence_config/tasks/main.yml b/roles/confluence_config/tasks/main.yml index 24e68b8..5a1f10e 100644 --- a/roles/confluence_config/tasks/main.yml +++ b/roles/confluence_config/tasks/main.yml @@ -18,18 +18,18 @@ # shared-data and attachments in the shared drive. - name: Symlink local attachments to shared storage file: - src: "{{ item[0] }}" - dest: "{{ item[1] }}" + src: "{{ item.from }}" + dest: "{{ item.to }}" 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/"] + - {from:: "{{ atl_product_home_shared }}/", + to: "{{ atl_product_home }}/shared-home/"} + - {from: "{{ atl_product_home_shared }}/attachments/", + to: "{{ atl_product_home }}/attachments/"} - name: Create Tomcat server config template: