add import status

This commit is contained in:
Andy Rajagopalan
2019-12-13 16:00:02 -08:00
committed by Steve Smith
parent bce7dbc7af
commit 0a3e855592

View File

@@ -50,4 +50,13 @@
force_basic_auth: yes force_basic_auth: yes
body_format: json body_format: json
return_content: yes return_content: yes
register: import_status register: import_status
until: "'COMPLETED' in import_status.content"
retries: 30
delay: 10
- name: create lock file
file:
path: "{{ atl_product_home_shared }}/data/migration/import/lock.file"
state: touch
when: import_status.state = 'COMPLETED'