-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.yml
39 lines (35 loc) · 1.68 KB
/
install.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
---
- name: Install the computateorg source code and watch service on the target.
hosts: localhost
vars:
GITHUB_ORG: "computate-org"
SITE_NAME: "computateorg"
SITE_REPO: "[email protected]:computate-org/computateorg.git"
SITE_SRC: "{{ playbook_dir }}"
SITE_JAVA_PACKAGE: "org.computate.site.enus"
RELATIVE_PATHS_TO_WATCH: "src/main/java/org/computate/site/enus"
SITE_CONFIG:
sqlTables: true
enableUserKey: true
enableSessionId: true
enableDeleted: true
enableArchived: true
tasks:
- include_role:
name: computate.computate_postgres
when: FILTER_POSTGRES is defined and FILTER_POSTGRES == 'true' or (FILTER_ZOOKEEPER is not defined and FILTER_SOLR is not defined and FILTER_PROJECT is not defined)
- include_role:
name: computate.computate_zookeeper
when: FILTER_ZOOKEEPER is defined and FILTER_ZOOKEEPER == 'true' or (FILTER_POSTGRES is not defined and FILTER_SOLR is not defined and FILTER_PROJECT is not defined)
- include_role:
name: computate.computate_solr
when: FILTER_SOLR is defined and FILTER_SOLR == 'true' or (FILTER_POSTGRES is not defined and FILTER_ZOOKEEPER is not defined and FILTER_PROJECT is not defined)
- include_role:
name: computate.computate_project
vars:
SITE_SERVICES:
- SITE_NAME: "{{ SITE_NAME }}"
SITE_SRC: "{{ SITE_SRC }}"
SITE_JAVA_PACKAGE: "{{ SITE_JAVA_PACKAGE }}"
RELATIVE_PATHS_TO_WATCH: "{{ RELATIVE_PATHS_TO_WATCH }}"
when: FILTER_PROJECT is defined and FILTER_PROJECT == 'true' or (FILTER_POSTGRES is not defined and FILTER_ZOOKEEPER is not defined and FILTER_SOLR is not defined)