-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
38 lines (38 loc) · 1.02 KB
/
playbook.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
---
- hosts: galaxyservers
become: true
pre_tasks:
- name: Install Dependencies
package:
name: ['python-psycopg2', 'git', 'python-virtualenv', 'make']
- name: Precreate FTP Directory
file:
path: "{{ galaxy_ftp_upload_dir }}"
owner: galaxy
group: galaxy
mode: 0750
state: directory
handlers:
- name: Restart Galaxy
supervisorctl:
name: galaxy
state: restarted
roles:
- galaxyproject.repos
- galaxyproject.postgresql
- role: natefoo.postgresql_objects
become: true
become_user: postgres
- galaxyproject.galaxy
- geerlingguy.pip
- usegalaxy-eu.supervisor
- geerlingguy.nginx
- galaxyproject.proftpd
post_tasks:
- name: Fix shed_tools path in shed_tool_conf.xml
replace:
path: "{{ galaxy_shed_tool_conf_file }}"
regexp: '^<toolbox tool_path="../shed_tools">$'
replace: '<toolbox tool_path="{{ galaxy_shed_tools_dir }}">'
notify:
- Restart Galaxy