[CORD-2460]
Update and fix build documentation, fix variables with new TOSCA engine
Change-Id: I21b5e3aa2abda0111a72d1a994140ab2894296ce
diff --git a/roles/epc-synced/defaults/main.yml b/roles/epc-synced/defaults/main.yml
index c621734..3e41139 100644
--- a/roles/epc-synced/defaults/main.yml
+++ b/roles/epc-synced/defaults/main.yml
@@ -16,6 +16,9 @@
# roles/epc-synced/defaults/main.yml
+head_credentials_dir: "/opt/credentials"
+
xos_admin_user: "xosadmin@opencord.org"
-xos_admin_pass: "{{ lookup('password', '/opt/credentials/xosadmin@opencord.org') }}"
+head_xos_admin_pass: "{{ lookup('file', head_credentials_dir ~ '/' ~ xos_admin_user) }}"
+
epc_sync_objects: []
diff --git a/roles/epc-synced/tasks/main.yml b/roles/epc-synced/tasks/main.yml
index 996a069..d31a3dc 100644
--- a/roles/epc-synced/tasks/main.yml
+++ b/roles/epc-synced/tasks/main.yml
@@ -20,7 +20,7 @@
uri:
url: http://localhost/xosapi/v1/{{ item }}
user: "{{ xos_admin_user }}"
- password: "{{ xos_admin_pass }}"
+ password: "{{ head_xos_admin_pass }}"
return_content: yes
register: result
until: result.json["items"] and result.json["items"][0]["backend_status"] == "OK"