-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup-liferay.yml
41 lines (33 loc) · 1.26 KB
/
setup-liferay.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
#* This playbook downloads, unpacks, and installes our customized liferay
#* packages. It will also connect the container and the #* database - both
#* must be already installed (see below).
#* Note: this playbook should be used either from the main install playbook
#* (which resolves its dependencies) or as a shorthand for an already set up
#* system, where the dependencies are already provided.
#* Use '-a' to pass parameters to ansible (as '-e'). See ansible fetch for
#* details.
#* No arguments are mandatory.
- import_playbook: install-elasticsearch.yml
- import_playbook: install-liferay.yml
- hosts: app.liferay,&app.tomcat
become: True
roles:
- { role: setup-liferay-tomcat, when: ( app__liferay__container == "tomcat" ) }
- hosts: app.liferay,&app.postgresql
become: True
roles:
- { role: setup-liferay-postgres, when: ( app__liferay__dbs == "postgresql" ) }
- hosts: app.liferay
become: True
roles:
- install-liferay-plugins
- hosts: app.liferay.7,&app.elasticsearch
roles:
- { role: setup-liferay-elasticsearch }
# not enabling this yet, as it only tracks 'today'
# it is only useful for human communication and needs
# to be combined with something smarter as
# dpkg --get-selections
#- hosts: all
# roles:
# - track-packages