-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbk-build-synth-pipeline.yml
64 lines (55 loc) · 1.73 KB
/
playbk-build-synth-pipeline.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
---
- hosts:
- dates
- nexttree
gather_facts: False
pre_tasks:
- name: Check Ansible version
assert:
that: '(ansible_version.major, ansible_version.minor, ansible_version.revision) >= (2, 5, 1)'
msg: 'Please install the recommended version 2.5.1+. You have Ansible {{ ansible_version.string }}.'
run_once: yes
- name: Install basic libraries and tools using apt
become: yes
apt:
name:
- git-core
- python3-pip
- python3-venv
- unzip
state: present
vars:
install_location: "{{ synth_dir }}"
otcws: False
otcetera_branch: development
peyotl_branch: allow-subtree-of-taxonomy
peyotl_install_location: "{{ synth_dir }}"
otc_prefix: "{{ synth_dir }}/local"
venv_peyotl: "{{ venv_synth }}"
venv_propinquity: "{{ venv_synth }}"
configure_peyotl: True
peyotl_config_location: "{{ synth_dir }}/dot_peyotl"
phylesystem_remote: "https://github.com/OpenTreeOfLife/{{ phylesystem_repo }}"
collections_remote: "https://github.com/OpenTreeOfLife/{{ collections_repo }}"
# template vars (used to create peyotl config)
phylesystem_parent: "{{ synth_dir }}"
repo_nexml2json: 1.2.1
ott_dir: "{{ synth_dir }}/ott"
logging_level: debug
peyotl_logging_filepath: "{{ synth_dir }}/peyotl.log"
logging_formatter: rich
tasks:
- name: Ensure a locale exists
locale_gen:
name: en_US.UTF-8
state: present
become: yes
- name: Install and configure otcetera
include_role:
name: otcetera
- name: Install peyotl for synth
include_role:
name: peyotl
- name: Install propinquity
include_role:
name: propinquity