add is defined

This commit is contained in:
Andy Rajagopalan
2019-12-17 23:05:26 -08:00
committed by Steve Smith
parent 0694727570
commit 1a1f4fb419

View File

@@ -33,7 +33,8 @@
until: output.status == 200 until: output.status == 200
retries: 6 retries: 6
delay: 15 delay: 15
failed_when: "'INITIALISING' not in output.content" failed_when: output is defined and output.json.state != 'INITIALISING'
#failed_when: "'INITIALISING' not in output.content"
- name: get status of import - name: get status of import
debug: var=output.json.state debug: var=output.json.state
@@ -51,7 +52,8 @@
body_format: json body_format: json
return_content: yes return_content: yes
register: import_status register: import_status
until: "'COMPLETED' in import_status.content" until: import_status is defined and import_status.content == 'COMPLETED'
#until: "'COMPLETED' in import_status.content"
retries: 30 retries: 30
delay: 10 delay: 10
@@ -59,4 +61,4 @@
file: file:
path: "{{ atl_product_home_shared }}/data/migration/import/lock.file" path: "{{ atl_product_home_shared }}/data/migration/import/lock.file"
state: touch state: touch
when: import_status.state == 'COMPLETED' when: import_status.state == 'COMPLETED'