diff options
Diffstat (limited to 'xci')
-rw-r--r-- | xci/playbooks/get-opnfv-scenario-requirements.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xci/playbooks/get-opnfv-scenario-requirements.yml b/xci/playbooks/get-opnfv-scenario-requirements.yml index 73590820..3c291384 100644 --- a/xci/playbooks/get-opnfv-scenario-requirements.yml +++ b/xci/playbooks/get-opnfv-scenario-requirements.yml @@ -68,7 +68,7 @@ - name: Plug in the scenario to XCI synchronize: src: "{{ scenario_path_default }}/{{ item.item.scenario }}/{{ item.item.role }}/" - dest: "{{ role_path_default }}/{{ item.item.scenario }}" + dest: "{{ role_path_default }}/{{ item.item.role | basename }}" when: item.stat.exists with_items: "{{ scenarios_list_exists.results }}" loop_control: @@ -76,8 +76,8 @@ - name: Synchronize local changes to scenarios' master branch synchronize: - src: "{{ xci_path }}/xci/scenarios/{{ item.item.scenario }}/{{ item.item.role | replace('xci/scenarios/{{ item.item.scenario }}', '') }}/" - dest: "{{ role_path_default }}/{{ item.item.scenario }}" + src: "{{ xci_path }}/xci/scenarios/{{ item.item.scenario }}/{{ item.item.role | replace('xci/scenarios/' ~ item.item.scenario ~ '/', '') }}/" + dest: "{{ role_path_default }}/{{ item.item.role | basename }}" failed_when: false when: - item.stat.exists @@ -89,7 +89,7 @@ - name: Plug in the scenario to XCI (fallback) synchronize: src: "{{ xci_path }}/{{ item.item.role }}/" - dest: "{{ role_path_default }}/{{ item.item.scenario }}" + dest: "{{ role_path_default }}/{{ item.item.role | basename }}" when: not item.stat.exists with_items: "{{ scenarios_list_exists.results }}" loop_control: |