-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove a lot of cruft, switch to yaml-style task params, and update for
Ansible 2.2 compatibility
- Loading branch information
Showing
12 changed files
with
267 additions
and
282 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
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
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
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,10 @@ | ||
- name: Check for Galaxy download receipt | ||
stat: path={{ galaxy_server_dir }}/{{ galaxy_changeset_id }}_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_changeset_id }}_receipt'" | ||
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'" | ||
when: not download_receipt.stat.exists | ||
|
||
- include: virtualenv.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
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
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,3 +1,23 @@ | ||
--- | ||
|
||
# Having pip installed on $PYTHONPATH can break upgrading it, so we install | ||
# once with $PYTHONPATH set (in case it's needed for virtualenv) and then once | ||
# the venv is created we upgrade pip with $PYTHONPATH unset | ||
|
||
- name: Create Galaxy virtualenv | ||
pip: name=pip virtualenv={{ galaxy_venv_dir }} virtualenv_command="{{ pip_virtualenv_command | default( 'virtualenv' ) }}" | ||
pip: | ||
name: pip | ||
virtualenv: "{{ galaxy_venv_dir }}" | ||
virtualenv_command: "{{ pip_virtualenv_command | default('virtualenv') }}" | ||
environment: | ||
VIRTUAL_ENV: "{{ galaxy_venv_dir }}" | ||
|
||
- name: Ensure pip is the latest release | ||
pip: | ||
name: pip | ||
state: latest | ||
virtualenv: "{{ galaxy_venv_dir }}" | ||
virtualenv_command: "{{ pip_virtualenv_command | default('virtualenv') }}" | ||
environment: | ||
PYTHONPATH: null | ||
VIRTUAL_ENV: "{{ galaxy_venv_dir }}" |