From 14ec0b9e990635966f3003e01abac423be313754 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 28 Feb 2017 12:59:13 +0100 Subject: [PATCH] library/roles/orientdb/tasks/main.yml: Use get_url to download the orientdb distribution. --- orientdb/tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/orientdb/tasks/main.yml b/orientdb/tasks/main.yml index 0a276ead..1300e098 100644 --- a/orientdb/tasks/main.yml +++ b/orientdb/tasks/main.yml @@ -3,8 +3,11 @@ - name: Create the orientdb user user: name={{ orientdb_user }} home={{ orientdb_base_dir }} createhome=yes shell=/bin/bash + - name: Get the orientdb distribution + get_url: url={{ orientdb_binary_distribution_url }} dest={{ orientdb_base_dir }}/{{ orientdb_tar_file }} + - name: Unpack the orientdb distribution - unarchive: src={{ orientdb_binary_distribution_url }} dest={{ orientdb_base_dir }} copy=no + unarchive: src={{ orientdb_base_dir }}/{{ orientdb_tar_file }} dest={{ orientdb_base_dir }} copy=no args: creates: '{{ orientdb_home_prefix }}/{{ orientdb_user }}/{{ orientdb_dir }}-{{ orientdb_version }}'