From 60f630095a640a2086cffebb791866efdf96f6f7 Mon Sep 17 00:00:00 2001 From: Periyasamy Palanisamy Date: Fri, 24 Nov 2017 17:09:11 +0100 Subject: xci: playbooks: Copy scenarios instead of symlinking them Previously, the scenarios were symlinked from the checked out location to {{ playbook_dir }}/roles. However, the symlinks were pointless since they only exist in our local releng-xci directory. The roles much also be present in OPNFV_RELENG_PATH which is the place where the deployment happens. We use 'rsync' to copy our local releng-xci directory to the remote one so our roles can be automatically be placed there if we copy them instead of symlinking them. Change-Id: I735db71eedfaa51d7196761aa2af8329d86cb775 Signed-off-by: Periyasamy Palanisamy Signed-off-by: Markos Chandras --- xci/playbooks/get-opnfv-scenario-requirements.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xci/playbooks/get-opnfv-scenario-requirements.yml b/xci/playbooks/get-opnfv-scenario-requirements.yml index 23aa1d41..a7b177ef 100644 --- a/xci/playbooks/get-opnfv-scenario-requirements.yml +++ b/xci/playbooks/get-opnfv-scenario-requirements.yml @@ -44,11 +44,9 @@ delay: "{{ git_clone_retry_delay }}" - name: Plug in the roles to XCI - file: - state: link - src: "{{ item.path | default(scenario_path_default) }}/{{ item.scenario | default(item.src | basename) }}/{{ item.role }}" - dest: "{{ role_path_default }}/{{ item.scenario }}" - force: yes + shell: >- + cp -a {{ item.path | default(scenario_path_default) }}/{{ item.scenario | default(item.src | basename) }}/{{ item.role }} + {{ role_path_default }}/{{ item.scenario }} with_items: "{{ scenarios }}" vars: -- cgit 1.2.3-korg