forked from mantidproject/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clone the data from the linode onto this node
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
Linux/external-data-mirror/ansible/roles/mirror/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
- name: Create a directory to hold the mirror of the external data. | ||
ansible.builtin.file: | ||
path: /external-data/ | ||
path: /external-data/MD5/ | ||
state: directory | ||
mode: '0755' | ||
|
||
- name: Exchange SSH keys with linode so we can access the data. | ||
import_tasks: exchange-keys.yml | ||
|
||
- name: Mirror the external data from the main server (this may take a while). | ||
command: "rsync -az --perms -o -g {{ main_server_ip }}:/srv/{{ main_server_ip }}/ftp/external-data/MD5/ /external-data/MD5/" |