From c95fe9412f8b0769e88338b571a83e76e997cc5c Mon Sep 17 00:00:00 2001 From: Andy Rajagopalan Date: Fri, 22 Nov 2019 09:00:35 -0800 Subject: [PATCH] added user/password details --- roles/bitbucket_dataset_restore/tasks/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/bitbucket_dataset_restore/tasks/main.yml b/roles/bitbucket_dataset_restore/tasks/main.yml index f22accc..cb68b83 100644 --- a/roles/bitbucket_dataset_restore/tasks/main.yml +++ b/roles/bitbucket_dataset_restore/tasks/main.yml @@ -14,9 +14,12 @@ - name: Invoke Import API uri: - url: http://admin:{{ atl_bitbucket_admin_password }}@localhost:7990/rest/api/1.0/migration/imports + url: http://localhost:7990/rest/api/1.0/migration/imports + user: admin + password: "{{ atl_bitbucket_admin_password }}" method: POST follow_redirects: yes + force_basic_auth: yes creates: "{{ atl_product_home_shared }}/data/migration/import/lock.file" body: "{ \"archivePath\": \"{{ atl_bitbucket_dataset_url | basename }}\" }" body_format: json @@ -24,5 +27,5 @@ register: response until: response.status == 200 retries: 6 - delay: 10 + delay: 15 failed_when: "'INITIALISING' not in response.content" \ No newline at end of file