1
0
mirror of https://github.com/inofix/common-playbooks.git synced 2026-02-05 12:45:29 +01:00
Files
common-playbooks/setup-liferay.yml

42 lines
1.3 KiB
YAML
Raw Permalink Normal View History

#* 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