2018-01-10 23:40:01 +01:00
|
|
|
---
|
2018-08-03 00:56:25 +02:00
|
|
|
- import_tasks: prerequisites/install-prerequisites.yml
|
|
|
|
|
2018-01-10 23:40:01 +01:00
|
|
|
- import_tasks: keys/apt-key.yml
|
|
|
|
when: ansible_os_family == "Debian"
|
|
|
|
|
|
|
|
- import_tasks: keys/rpm-key.yml
|
|
|
|
when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
|
|
|
|
|
2018-07-12 00:41:10 +02:00
|
|
|
- name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX"
|
|
|
|
block:
|
2018-01-10 23:40:01 +01:00
|
|
|
|
2018-07-12 00:41:10 +02:00
|
|
|
- import_tasks: opensource/install-oss.yml
|
|
|
|
when: type == "opensource"
|
2018-01-10 23:40:01 +01:00
|
|
|
|
2018-07-12 00:41:10 +02:00
|
|
|
- import_tasks: plus/install-plus.yml
|
|
|
|
when: type == "plus"
|
2018-01-19 19:27:47 +01:00
|
|
|
|
2018-08-02 21:51:45 +02:00
|
|
|
- import_tasks: modules/install-modules.yml
|
|
|
|
when: true in modules.values()
|
2018-01-26 20:00:26 +01:00
|
|
|
|
2018-07-12 00:41:10 +02:00
|
|
|
- import_tasks: conf/push-config.yml
|
|
|
|
when: main_push_enable or http_push_enable or stream_push_enable
|
2018-01-26 20:00:26 +01:00
|
|
|
|
2018-07-12 00:41:10 +02:00
|
|
|
- import_tasks: conf/template-config.yml
|
|
|
|
when: main_template_enable or http_template_enable or stream_template_enable
|
2018-01-10 23:40:01 +01:00
|
|
|
|
2018-07-12 00:41:10 +02:00
|
|
|
- import_tasks: conf/setup-status.yml
|
|
|
|
when: status_enable
|
2018-01-19 19:27:47 +01:00
|
|
|
|
2018-07-12 00:41:10 +02:00
|
|
|
- import_tasks: conf/setup-rest-api.yml
|
|
|
|
when: rest_api_enable and type == "plus"
|
|
|
|
|
|
|
|
when: nginx_enable
|
2018-04-09 23:21:38 +02:00
|
|
|
|
2018-09-11 01:05:25 +02:00
|
|
|
- import_tasks: amplify/install-amplify.yml
|
2018-09-12 23:03:20 +02:00
|
|
|
when: amplify_enable and amplify_api_key is defined and amplify_api_key
|
2018-09-11 01:05:25 +02:00
|
|
|
|
|
|
|
- import_tasks: controller/install-controller.yml
|
2018-09-12 21:16:04 +02:00
|
|
|
when: controller_enable and controller_api_key is defined and controller_api_key and controller_api_endpoint is defined and controller_api_endpoint
|
2018-09-11 01:05:25 +02:00
|
|
|
|
2018-04-09 23:21:38 +02:00
|
|
|
- import_tasks: unit/install-unit.yml
|
|
|
|
when: unit_enable
|