changed response to output

This commit is contained in:
Andy Rajagopalan
2019-12-06 11:12:48 -08:00
committed by Steve Smith
parent 69907ad570
commit 12853e9a55

View File

@@ -29,24 +29,15 @@
body: "{ \"archivePath\": \"{{ atl_bitbucket_dataset_url | basename }}\" }" body: "{ \"archivePath\": \"{{ atl_bitbucket_dataset_url | basename }}\" }"
body_format: json body_format: json
return_content: yes return_content: yes
register: response register: output
until: response.status == 200 until: output.status == 200
retries: 6 retries: 6
delay: 15 delay: 15
failed_when: response.json.state != 'INITIALISING' #failed_when: output.json.state != 'INITIALISING'
failed_when: failed_when: "'INITIALISING' not in output.content"
- name: get status of import - name: get status of import
debug: var=response debug: var=output
- name: get job id
debug: var=response.json.state
with_items: "{{ response }}"
- name: get job id
debug: var=response.json.id
with_items: "{{ response }}"