library/roles/orientdb/tasks/main.yml: Use get_url to download the orientdb distribution.

This commit is contained in:
Andrea Dell'Amico 2017-02-28 12:59:13 +01:00
parent 99c4b5f7e3
commit 14ec0b9e99
1 changed files with 4 additions and 1 deletions

View File

@ -3,8 +3,11 @@
- name: Create the orientdb user - name: Create the orientdb user
user: name={{ orientdb_user }} home={{ orientdb_base_dir }} createhome=yes shell=/bin/bash 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 - 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: args:
creates: '{{ orientdb_home_prefix }}/{{ orientdb_user }}/{{ orientdb_dir }}-{{ orientdb_version }}' creates: '{{ orientdb_home_prefix }}/{{ orientdb_user }}/{{ orientdb_dir }}-{{ orientdb_version }}'