-
Notifications
You must be signed in to change notification settings - Fork 62
/
up-to.yml
59 lines (50 loc) · 1.66 KB
/
up-to.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
---
- name: Bring machines up to specific point
hosts: workshop_instances
vars:
# 2022-03-30 # Before any changes, last step of step 4 # CVMFS = step-5
git_gat_version: b4e777e9f64e05ab0beb05c5b2b1f4428f2c58d4
# For end-of-cvmfs, ready for DRM, use
# -e git_gat_version=60813e9a7000f1715c6a378dd7d2caa02cf83658
# on the command line.
tasks:
- name: Git checkout
ansible.builtin.git:
repo: 'https://github.com/hexylena/git-gat/'
dest: galaxy/
version: "{{ git_gat_version }}"
force: yes
- name: Fix ansible
command: pip install -U ansible
# BEGIN CVMFS Hacks
- name: Wipe out CVMFS
command: rm -rf roles/galaxyproject.cvmfs/
args:
chdir: galaxy/
- name: Hackily use latest version of CVMFS role.
ansible.builtin.lineinfile:
path: galaxy/requirements.yml
regexp: ' version: 0.2.13'
line: ' version: 0.2.16'
- name: Hackily disable config-repo and just use the specific CVMFS repos.
ansible.builtin.lineinfile:
path: galaxy/group_vars/all.yml
regexp: 'galaxy_cvmfs_repos_enabled:'
line: 'galaxy_cvmfs_repos_enabled: true'
# END CVMFS Hacks
- name: Install deps
command: ansible-galaxy install -r requirements.yml -p roles
args:
chdir: galaxy/
- name: Setup hosts file
ansible.builtin.template:
src: templates/hosts
dest: galaxy/hosts
- name: Setup vault password
ansible.builtin.copy:
content: "password"
dest: galaxy/.vault-password.txt
- name: Setup Galaxy
command: ansible-playbook galaxy.yml
args:
chdir: galaxy/