-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_xnat.yml
55 lines (46 loc) · 1.45 KB
/
install_xnat.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
---
- name: Configure the XNAT web server and create PostgreSQL client certificate
hosts: xnat
become: true
gather_facts: true
roles:
- role: mirsg.infrastructure.provision
- role: mirsg.infrastructure.install_python
- role: mirsg.infrastructure.install_java
- role: mirsg.infrastructure.tomcat
- role: mirsg.infrastructure.nginx
- role: mirsg.infrastructure.ssl_certificates
vars:
ssl_certificate: "{{ postgresql_client_ssl_certificate }}" # noqa: var-naming[no-role-prefix]
when: postgresql_use_ssl
- name: Set up XNAT database server
hosts: db
become: true
gather_facts: true
roles:
- role: mirsg.infrastructure.provision
- role: mirsg.infrastructure.install_python
- role: mirsg.infrastructure.postgresql
- role: mirsg.infrastructure.firewalld
- name: Install XNAT
hosts: xnat
become: true
gather_facts: true
roles:
- role: mirsg.infrastructure.xnat
- role: mirsg.infrastructure.firewalld
- name: Setup Container Service on hosts
hosts: container_service_host
become: true
gather_facts: true
roles:
- role: mirsg.infrastructure.provision
- role: mirsg.infrastructure.install_python
- role: mirsg.infrastructure.docker
- role: mirsg.infrastructure.firewalld
- name: Setup Container Service on clients (i.e. the web servers)
hosts: container_service_client
become: true
gather_facts: true
roles:
- role: mirsg.infrastructure.xnat_container_service