-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathg4t_galaxy.yml
54 lines (47 loc) · 1.38 KB
/
g4t_galaxy.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
- hosts: galaxy_hosts
become: true
handlers:
- name: restart galaxy
debug:
msg: "Not yet available"
pre_tasks:
#
# - name: Copy custom_tool_conf xml file
# copy:
# src: custom_tool_conf.xml
# dest: "{{ galaxy_mutable_config_dir }}"
# owner: galaxy
# group: users
# become: yes
- name: Only update apt cache if the last one is more than 3600 seconds ago
apt:
update_cache: yes
cache_valid_time: 3600
- name: Install dependencies
apt:
pkg:
- git
- make
- virtualenv
state: present
roles:
- role: common
- role: galaxyproject.galaxy
post_tasks:
- name: Create log directory
file:
state: "{{ item.state }}"
path: "{{ item.path }}"
owner: "{{ galaxy_user.name }}"
group: "{{ galaxy_user.name }}"
with_items:
- {path: "{{ galaxy_mutable_data_dir }}/log", state: "directory" }
- {path: "{{ galaxy_mutable_data_dir }}/tool-data", state: "directory" }
- name: Copy config files
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0644
with_items:
- { src: "tool_data_table_conf.xml.j2", dest: "{{ galaxy_mutable_config_dir }}/tool_data_table_conf.xml" }
- { src: "shed_tool_conf.xml.j2", dest: "{{ galaxy_shed_tool_conf_file }}" }