-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplaybook.yml
62 lines (57 loc) · 1.42 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
- hosts: dbservers
become: true
become_user: root
pre_tasks:
- name: Install Dependencies
package:
name: 'acl'
roles:
- galaxyproject.postgresql
- role: galaxyproject.postgresql_objects
become: true
become_user: postgres
- hosts: all
become: true
become_user: root
pre_tasks:
- name: Add custom slurm PPA (used for Slurm DRMAA package)
apt_repository:
repo: ppa:natefoo/slurm-drmaa
state: present
update_cache: yes
when: install_slurm
- name: Install Dependencies
package:
name:
- 'acl'
- 'bzip2'
- 'git'
- 'make'
- 'tar'
- 'python3-venv'
- 'python3-setuptools'
- slurm-wlm
- slurm-drmaa-dev
# - python-psutil
- name: merge common and specific galaxy_config dictionary
set_fact:
galaxy_config: "{{ common_galaxy_config|ansible.builtin.combine(galaxy_config, recursive=true) }}"
roles:
- galaxyproject.galaxy
- role: galaxyproject.miniconda
become: true
become_user: "{{ galaxy_user.name }}"
- galaxyproject.nginx
- role: galaxyproject.slurm
become: true
when: install_slurm
- role: installUptime
when: install_uptime
# post_tasks:
#
# - name: restart nginx
# service:
# name: nginx
# state: restarted
# when: not nginx_supervisor