-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathprovision.yml
46 lines (46 loc) · 1.58 KB
/
provision.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
- hosts: localhost
connection: local
tasks:
- debug: msg="Hello Galaxy!"
- shell: whoami
pre_tasks:
- name: Assure galaxyFS dir exists
file: path={{ galaxyFS_base_dir }} state=directory owner={{ galaxy_user_name }} group={{ galaxy_user_name }}
become: True
- name: Create shed tools dir
file: state=directory path={{ galaxy_shed_tools_dir }}
- name: Install postgres system package (creates user for next step)
apt: pkg=postgresql state=latest
- name: Install python-virtualenv system package
apt: pkg=python-virtualenv state=latest
# cloudman uses PIP, I think this is preferable?
- name: Create database dir
file: path={{ galaxy_db_dir }} state=directory owner=postgres group=postgres
become: True
roles:
- role: galaxyprojectdotorg.galaxy-os
tags: image
- role: galaxyprojectdotorg.cloudman-database
sudo: True
sudo_user: postgres
tags: database
- role: galaxyprojectdotorg.galaxy
become: True
become_user: "{{ galaxy_user_name }}"
tags: galaxy
- role: galaxyprojectdotorg.galaxy-extras
tags: galaxyextras
- role: galaxyprojectdotorg.devbox
tags: devbox
- role: galaxyprojectdotorg.galaxy_toolshed
tags: toolshed
# - role: galaxyprojectdotorg.cloudmantrackster
# tags: cloudmantrackster
# - role: smola.java
# tags: java
# java_packages:
# - oracle-java7-installer
- hosts: localhost
connection: local
tasks:
- file: path=/opt/galaxy/tools state=directory owner=ubuntu