diff options
author | Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com> | 2017-11-24 17:09:11 +0100 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2017-11-30 11:20:29 +0000 |
commit | 60f630095a640a2086cffebb791866efdf96f6f7 (patch) | |
tree | 5e85d0358830ff260b1ab46f37dfd6f457478f0e | |
parent | be8c241017a04c280ab8fd92b4e528bb05725468 (diff) |
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 <periyasamy.palanisamy@ericsson.com>
Signed-off-by: Markos Chandras <mchandras@suse.de>
-rw-r--r-- | xci/playbooks/get-opnfv-scenario-requirements.yml | 8 |
1 files 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: |