-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathregalaxy_tools_install.yml
More file actions
29 lines (29 loc) · 1.4 KB
/
regalaxy_tools_install.yml
File metadata and controls
29 lines (29 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
- hosts: galaxyservers
become: true
become_user: root
tasks:
## Install required Galaxy tools
- name: Install required tools - create Ephemeris venv
ansible.builtin.shell:
cmd: python3 -m venv ~/ephemeris_venv
- name: Install required tools - install Ephemeris
ansible.builtin.shell:
cmd: source ~/ephemeris_venv/bin/activate && pip install ephemeris
- name: Install required tools - install Galaxy tools
ansible.builtin.shell:
cmd: ~/ephemeris_venv/bin/shed-tools install -g https://{{ inventory_hostname }}{{ csnt_galaxy_url_prefix }} -a {{ api_key }} -t {{ playbook_dir }}/files/{{ inventory_hostname }}/regalaxy_tool_list.yaml
when: "inventory_hostname in ['repeatexplorer-elixir.cerit-sc.cz', 'galaxy-re.grid.cesnet.cz']"
- name: Set-up pre-defined integrated_tool_panel config file on RE instance only
ansible.builtin.copy:
src: "{{ playbook_dir }}/files/{{ inventory_hostname }}/regalaxy_integrated_tool_panel.xml"
dest: "{{ galaxy_mutable_config_dir }}/integrated_tool_panel.xml"
owner: "{{ galaxy_user_name }}"
group: "{{ galaxy_user_group_name }}"
mode: '0644'
backup: true
when: "inventory_hostname in ['repeatexplorer-elixir.cerit-sc.cz', 'galaxy-re.grid.cesnet.cz']"
- name: Restart galaxy
become: true
become_user: root
ansible.builtin.command: galaxyctl restart