CORD-1394 Unify build environment paths
Change-Id: I433d5ae95c9cc540d5586da5ca55b889d8fb1f81
diff --git a/roles/copy-profile/defaults/main.yml b/roles/copy-profile/defaults/main.yml
index 6f7b645..e9d6fb4 100644
--- a/roles/copy-profile/defaults/main.yml
+++ b/roles/copy-profile/defaults/main.yml
@@ -1,5 +1,5 @@
---
# copy-profile/defaults/main.yml
-config_cord_profile_dir: "{{ ansible_user_dir ~ '/cord_profile' }}"
+config_cord_profile_dir: "/opt/cord_profile"
head_cord_profile_dir: "/opt/cord_profile"
diff --git a/roles/copy-profile/tasks/main.yml b/roles/copy-profile/tasks/main.yml
index 3434c27..c206a3f 100644
--- a/roles/copy-profile/tasks/main.yml
+++ b/roles/copy-profile/tasks/main.yml
@@ -3,7 +3,7 @@
- name: Copy (sync) the cord_profile directory structure to head node
synchronize:
- src: "{{ hostvars[groups['config'][0]]['config_cord_profile_dir'] }}/"
+ src: "{{ config_cord_profile_dir }}/"
dest: "{{ head_cord_profile_dir }}/"
delete: yes