Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated download URL. Added functions from clone.yml. Using unarchive…
… instead of bash.
- Loading branch information
eslerm
committed
Nov 9, 2018
1 parent
3853b8d
commit b1f73d5
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
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
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,11 +1,29 @@ | ||
--- | ||
# Manage Galaxy download | ||
|
||
- name: Check for Galaxy download receipt | ||
stat: | ||
path: "{{ galaxy_server_dir }}/{{ galaxy_commit_id }}_receipt" | ||
register: download_receipt | ||
|
||
- name: Replace current version of Galaxy | ||
shell: "rm -rf '{{ galaxy_server_dir }}' && mkdir '{{ galaxy_server_dir }}' && wget -q -O - {{ galaxy_download_url }} | tar xzf - --strip-components=1 -C {{ galaxy_server_dir }} && touch '{{ galaxy_server_dir }}/{{ galaxy_commit_id }}_receipt'" | ||
- name: Install current version of Galaxy | ||
unarchive: | ||
src: "{{ galaxy_download_url }}" | ||
dest: "{{ galaxy_server_dir }}" | ||
extra_opts: --strip-components=1 | ||
remote_src: yes | ||
when: not download_receipt.stat.exists | ||
|
||
- name: Create Galaxy download receipt | ||
file: | ||
path: "{{ galaxy_server_dir }}/{{ galaxy_commit_id }}_receipt" | ||
state: touch | ||
when: not download_receipt.stat.exists | ||
|
||
- name: Include virtualenv setup tasks | ||
include_tasks: virtualenv.yml | ||
|
||
- name: Remove orphaned .pyc files and compile bytecode | ||
script: makepyc.py {{ galaxy_server_dir }}/lib | ||
environment: | ||
PATH: "{{ galaxy_venv_dir }}/bin" |