From: Periyasamy Palanisamy Date: Fri, 24 Nov 2017 16:09:11 +0000 (+0100) Subject: xci: playbooks: Copy scenarios instead of symlinking them X-Git-Tag: 6.0.0~224^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F47775%2F8;p=releng-xci.git 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 --- 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: