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>
tasks:
- name: Remove existing scenario directories
file:
- path: "{{ item[1] }} + '/' + {{ item[0].scenario }}"
+ path: "{{ item[1] }}/{{ item[0].scenario }}"
state: absent
with_nested:
- "{{ scenarios }}"
- name: Create scenario directories
file:
- path: "{{ role_path_default }} + '/' + item.scenario }}"
+ path: "{{ role_path_default }}/{{ item.scenario }}"
state: directory
with_items: "{{ scenarios }}"
loop_control: