forked from usegalaxy-au/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
staging_playbook.yml
76 lines (76 loc) · 2.13 KB
/
staging_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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
- hosts: staging_galaxy_server
become: true
vars_files:
- group_vars/all.yml
- group_vars/staging.yml
- group_vars/VAULT
- group_vars/galaxyservers.yml
- group_vars/staging_slurm.yml
- host_vars/staging.gvl.org.au.yml
- secret_group_vars/stats_server_vault
pre_tasks:
# - name: Attach volume to instance
# include_role:
# name: attached-volumes
- name: create dir for galaxy's singularity cache
file:
state: directory
path: "{{ item }}"
owner: galaxy
group: galaxy
mode: 0700
with_items:
- "{{ galaxy_user_singularity_cachedir }}"
- "{{ galaxy_user_singularity_tmpdir }}"
roles:
- galaxyproject.repos
- common
- install-tpv
- geerlingguy.pip
- galaxyproject.galaxy
- role: galaxyproject.miniconda
become: true
become_user: galaxy
- usegalaxy_eu.galaxy_subdomains
- webhooks
- nginx-upload-module
- galaxyproject.nginx
- galaxyproject.tusd
- geerlingguy.nfs
- galaxyproject.slurm
- galaxyproject.cvmfs
- gantsign.golang
- cyverse-ansible.singularity
- geerlingguy.docker
- acl-on-startup
- galaxyproject.gxadmin
- dj-wasabi.telegraf
- pg-post-tasks
- postfix-mail-relay
post_tasks:
- name: Ensure object store paths exist
file:
state: directory
path: "{{ item }}"
owner: galaxy
group: galaxy
with_items:
- /mnt/galaxy/data
- /mnt/galaxy/data-2
- /mnt/galaxy/data-3
- name: Install slurm-drmaa
package:
name: slurm-drmaa1
- name: Uninstall the existing web-dav-client
pip:
name: "webdavclient3"
virtualenv: "{{ galaxy_venv_dir }}"
state: absent
- name: Workaround content-length header bug in webdav through forcible update to newer version
pip:
name: "webdavclient3@git+https://github.com/ezhov-evgeny/webdav-client-python-3@0f17fa7946e66f7963db367d0d6b2e7f940ebeb8"
virtualenv: "{{ galaxy_venv_dir }}"
- name: Reload exportfs
command: exportfs -ra
become: yes
become_user: root