add ignore_errors and expand json key name

This commit is contained in:
Andy Rajagopalan
2019-12-05 10:23:07 -08:00
committed by Steve Smith
parent 88bdd58a24
commit 4ff1080f29

View File

@@ -33,14 +33,17 @@
until: response.status == 200
retries: 6
delay: 15
failed_when: response.json.state != 'INITIALISING'
failed_when: response.response.json.state != 'INITIALISING'
- name: get status of import
debug: var=response
ignore_errors: True
- name: get job id
debug: var=response.json.state
debug: var=response.response.json.state
ignore_errors: True
- name: get job id
debug: var=response.json.id
ignore_errors: True