-
Notifications
You must be signed in to change notification settings - Fork 11
/
galaxyFS.yml
44 lines (42 loc) · 1.7 KB
/
galaxyFS.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
---
# Before running roles inside this playbook, copy
# ``inventory/builders.sample`` as ``inventory/builders`` and edit it
# to provide info about your build instance(s)
# To build the galaxyFS, use this playbook via the following command (make sure
# you provided an instance IP in ``inventory/builders`` for
# ``galaxyFS-builder`` host group and that you have the specified
# environment variables defined with desired values):
#
# % ansible-playbook -i inventory/builders galaxyFS.yml
# --extra-vars psql_galaxyftp_password=$CM_GALAXY_FTP_PWD
# --extra-vars galaxy_tools_admin_user_password=$CM_GALAXY_ADMIN_PWD
#
# - hosts: galaxyFS-builder
- hosts: localhost
connection: local
gather_facts: False # Not making system-level changes so skip
sudo: yes
sudo_user: "{{ galaxy_user_name }}"
pre_tasks:
- name: Assure galaxyFS dir exists
file: path={{ galaxyFS_base_dir }} state=directory owner={{ galaxy_user_name }} group={{ galaxy_user_name }}
sudo_user: root
- name: Assure indicesFS dir exists
file: path={{ indicesFS_base_dir }} state=directory owner={{ galaxy_user_name }} group={{ galaxy_user_name }}
sudo_user: root
- name: Create shed tools dir
file: state=directory path={{ galaxy_shed_tools_dir }}
- name: Create database dir
file: path={{ galaxy_db_dir }} state=directory owner=postgres group=postgres
sudo_user: root
roles:
- galaxyprojectdotorg.cloudman-database
- role: galaxyprojectdotorg.galaxy
tags: galaxy, update
- trackster
- role: galaxyprojectdotorg.cloudman-galaxy-setup
tags: setup, update
- role: galaxy_tools
tags: tools, update
- role: cm.filesystem
tags: filesystem