-
Notifications
You must be signed in to change notification settings - Fork 18
/
pulsar-mel3_playbook.yml
59 lines (59 loc) · 1.85 KB
/
pulsar-mel3_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
- hosts: pulsar-mel3
become: true
vars_files:
- group_vars/all.yml
- group_vars/pulsar_mel3/pulsar-mel3.yml
- group_vars/pulsarservers.yml
- group_vars/pulsar_mel3/pulsar-mel3_slurm.yml
- group_vars/VAULT
- host_vars/pulsar-mel3/pulsar-mel3.genome.edu.au.yml
- secret_group_vars/stats_server_vault
- secret_group_vars/ubuntu_maintenance_key
pre_tasks:
- name: apt update
apt:
cache_valid_time: 3600
update_cache: yes
when: ansible_os_family == "Debian"
# attached_volumes role is broken for legacy cases where there is no parition set.
# If we need to run this role again we should be adding partition to each attached_volumes entry for this VM
# - name: Attach volume to instance If we need to run this role again we should add parition to the attached_volumes entries for this VM
# include_role:
# name: attached-volumes
- name: Create pulsar deps path
file:
path: "{{ pulsar_dependencies_dir }}"
state: directory
owner: "{{ pulsar_user.name }}"
group: "{{ pulsar_user.name }}"
roles:
- common
- insspb.hostname
- geerlingguy.pip
- galaxyproject.repos
- role: galaxyproject.miniconda
become: true
become_user: "{{ pulsar_user.name }}"
- galaxyproject.pulsar
- geerlingguy.nfs
- mariadb
- galaxyproject.slurm
- galaxyproject.cvmfs
- gantsign.golang
- cyverse-ansible.singularity
- geerlingguy.docker
- acl-on-startup
- dj-wasabi.telegraf
- pulsar-post-tasks
- slurm-post-tasks
- slg.galaxy_stats
post_tasks:
- name: Make sure link from /mnt/pulsar/files to /mnt/files exists
file:
src: /mnt/files
dest: /mnt/pulsar/files
state: link
owner: ubuntu
group: ubuntu
- name: Reload exportfs
command: exportfs -ra