add tasks to copy to /tmp/import dir

This commit is contained in:
Andy Rajagopalan
2019-11-20 12:35:11 -08:00
parent fbd77c8335
commit 4bc56ddff9

View File

@@ -1,11 +1,22 @@
---
- name: wait for bitbucket service to start
wait_for:
port: 7990
delay: 10
- name: Check if import directory exists
stat:
path: /tmp/import
register: import_dir
- name: create directory structure if it note exists
file:
path: /tmp/import
state: directory
mode: 0644
group: root
owner: root
when: import_dir.stat.exists == false
- name: Copy Bitbucket dataset from s3
get_url:
url: "{{ atl_bitbucket_dataset_url }}"
dest: /media/atl/bitbucket/shared/data/migration/import/
dest: /tmp/import