summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwutianwei <wutianwei1@huawei.com>2017-12-21 22:55:19 +0800
committerwutianwei <wutianwei1@huawei.com>2017-12-21 22:56:39 +0800
commit6503c6fbac486c38d7898656985c68d46b24ffe0 (patch)
tree376cabb30a76fe34926b3a830befdc4bf9ad4bf1
parent1a68730ab76b3fad4395f1cca0d3590c0507d378 (diff)
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 <wutianwei1@huawei.com>
-rw-r--r--xci/playbooks/get-opnfv-scenario-requirements.yml4
1 files 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: