[CORD-2453]
Remove docker connection used with old TOSCA engine from platform-install
Change-Id: Id39121bb4f77c38b692b61abc9071e41c050adc0
diff --git a/roles/test-ecord-subscriber-enable/tasks/main.yml b/roles/test-ecord-subscriber-enable/tasks/main.yml
index a7e2674..5630c43 100644
--- a/roles/test-ecord-subscriber-enable/tasks/main.yml
+++ b/roles/test-ecord-subscriber-enable/tasks/main.yml
@@ -1,4 +1,4 @@
-
+---
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,12 +13,23 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
----
# test-ecord-subscriber-enable/tasks/main.yml
-- name: Run TOSCA to add test-ecord-subscriber
- command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/test-ecord-subscriber.yaml"
+- name: Run TOSCA to add E-CORD test-subscriber
+ uri:
+ url: "{{ xos_tosca_url }}/run"
+ method: POST
+ headers:
+ xos-username: "{{ xos_admin_user }}"
+ xos-password: "{{ head_xos_admin_pass }}"
+ body: "{{ lookup('file', head_cord_profile_dir + '/' + item ) }}"
+ status_code: 200
+ register: result
+ until: result | success
+ retries: 50
+ delay: 5
+ with_items:
+ - "test-ecord-subscriber.yaml"
tags:
- skip_ansible_lint # TOSCA loading should be idempotent