From 6503c6fbac486c38d7898656985c68d46b24ffe0 Mon Sep 17 00:00:00 2001 From: wutianwei Date: Thu, 21 Dec 2017 22:55:19 +0800 Subject: Fix the parameter of scenario directories 1. the "+" and "'" will be part of the string in the path parameter of ansible. So the directories we create are not right. we need remove these char. 2. it miss the "{{" in ansible variable Change-Id: I30c9804450588c63f5f18c63c1d90cd869fad90e Signed-off-by: wutianwei --- xci/playbooks/get-opnfv-scenario-requirements.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xci/playbooks/get-opnfv-scenario-requirements.yml b/xci/playbooks/get-opnfv-scenario-requirements.yml index 037c6ea9..7f10a465 100644 --- a/xci/playbooks/get-opnfv-scenario-requirements.yml +++ b/xci/playbooks/get-opnfv-scenario-requirements.yml @@ -23,7 +23,7 @@ tasks: - name: Remove existing scenario directories file: - path: "{{ item[1] }} + '/' + {{ item[0].scenario }}" + path: "{{ item[1] }}/{{ item[0].scenario }}" state: absent with_nested: - "{{ scenarios }}" @@ -33,7 +33,7 @@ - name: Create scenario directories file: - path: "{{ role_path_default }} + '/' + item.scenario }}" + path: "{{ role_path_default }}/{{ item.scenario }}" state: directory with_items: "{{ scenarios }}" loop_control: -- cgit 1.2.3-korg