From 8f521d7d9571cca0a1af61fe6ee7179d3cded730 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Tue, 26 Nov 2019 08:58:19 +1100 Subject: [PATCH] DCD-791: Use nested lists. --- roles/confluence_config/tasks/main.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/roles/confluence_config/tasks/main.yml b/roles/confluence_config/tasks/main.yml index 5a1f10e..365dce8 100644 --- a/roles/confluence_config/tasks/main.yml +++ b/roles/confluence_config/tasks/main.yml @@ -18,18 +18,19 @@ # shared-data and attachments in the shared drive. - name: Symlink local attachments to shared storage file: - src: "{{ item.from }}" - dest: "{{ item.to }}" + src: "{{ item.0 }}" + dest: "{{ item.1 }}" force: false state: link mode: 0750 owner: "{{ atl_product_user }}" group: "{{ atl_product_user }}" - with_items: - - {from:: "{{ atl_product_home_shared }}/", - to: "{{ atl_product_home }}/shared-home/"} - - {from: "{{ atl_product_home_shared }}/attachments/", - to: "{{ atl_product_home }}/attachments/"} + vars: + - links: + - ["{{ atl_product_home_shared }}/", "{{ atl_product_home }}/shared-home/"] + - ["{{ atl_product_home_shared }}/attachments/", "{{ atl_product_home }}/attachments/"] + with_nested: + - "{{ links }}" - name: Create Tomcat server config template: