-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplaybook.yml
50 lines (42 loc) · 1.06 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
---
# Three node deployment:
# - PostgreSQL database
# - OMERO.server
# - OMERO.web
- hosts: all
tasks:
- name: Set OS distribution dependent variables
include_vars: "{{ ansible_facts['os_family'] | lower }}.yml"
when: ansible_facts['os_family'] == "Debian"
- hosts: omero-database
roles:
- role: ome.postgresql
vars:
postgresql_server_listen: "'*'"
postgresql_server_auth:
- database: omero
user: omero
address: 0.0.0.0/0
postgresql_databases:
- name: omero
postgresql_users:
- user: omero
password: omero
databases: [omero]
postgresql_version: "11"
- hosts: omero-server
roles:
- role: ome.omero_server
vars:
omero_server_dbhost: >-
{{ hostvars['omero-database'].ansible_eth0.ipv4.address }}
postgresql_version: "11"
- hosts: omero-web
roles:
- role: ome.basedeps
- role: ome.omero_web
vars:
omero_web_config_set:
omero.web.server_list:
- ["{{ hostvars['omero-server'].ansible_eth0.ipv4.address }}",
4064, omero]