Fix the parameter of scenario directories 81/49481/1
authorwutianwei <wutianwei1@huawei.com>
Thu, 21 Dec 2017 14:55:19 +0000 (22:55 +0800)
committerwutianwei <wutianwei1@huawei.com>
Thu, 21 Dec 2017 14:56:39 +0000 (22:56 +0800)
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>
xci/playbooks/get-opnfv-scenario-requirements.yml

index 037c6ea..7f10a46 100644 (file)
@@ -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: