|
5 | 5 | - import_tasks: keys/rpm-key.yml
|
6 | 6 | when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
|
7 | 7 |
|
8 |
| -- import_tasks: opensource/install-oss.yml |
9 |
| - when: type == "opensource" |
| 8 | +- name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX" |
| 9 | + block: |
10 | 10 |
|
11 |
| -- import_tasks: plus/install-plus.yml |
12 |
| - when: type == "plus" |
| 11 | + - import_tasks: opensource/install-oss.yml |
| 12 | + when: type == "opensource" |
13 | 13 |
|
14 |
| -- import_tasks: modules/install-njs.yml |
15 |
| - when: modules.njs |
| 14 | + - import_tasks: plus/install-plus.yml |
| 15 | + when: type == "plus" |
16 | 16 |
|
17 |
| -- import_tasks: modules/install-perl.yml |
18 |
| - when: modules.perl |
| 17 | + - import_tasks: modules/install-njs.yml |
| 18 | + when: modules.njs |
19 | 19 |
|
20 |
| -- import_tasks: modules/install-geoip.yml |
21 |
| - when: modules.geoip |
| 20 | + - import_tasks: modules/install-perl.yml |
| 21 | + when: modules.perl |
22 | 22 |
|
23 |
| -- import_tasks: modules/install-image-filter.yml |
24 |
| - when: modules.image_filter |
| 23 | + - import_tasks: modules/install-geoip.yml |
| 24 | + when: modules.geoip |
25 | 25 |
|
26 |
| -- import_tasks: modules/install-rtmp.yml |
27 |
| - when: modules.rtmp |
| 26 | + - import_tasks: modules/install-image-filter.yml |
| 27 | + when: modules.image_filter |
28 | 28 |
|
29 |
| -- import_tasks: modules/install-xslt.yml |
30 |
| - when: modules.xslt |
| 29 | + - import_tasks: modules/install-rtmp.yml |
| 30 | + when: modules.rtmp |
31 | 31 |
|
32 |
| -- import_tasks: modules/install-waf.yml |
33 |
| - when: modules.waf and type == "plus" |
| 32 | + - import_tasks: modules/install-xslt.yml |
| 33 | + when: modules.xslt |
34 | 34 |
|
35 |
| -- import_tasks: conf/push-config.yml |
36 |
| - when: main_push_enable or http_push_enable or stream_push_enable |
| 35 | + - import_tasks: modules/install-waf.yml |
| 36 | + when: modules.waf and type == "plus" |
37 | 37 |
|
38 |
| -- import_tasks: conf/template-config.yml |
39 |
| - when: main_template_enable or http_template_enable or stream_template_enable |
| 38 | + - import_tasks: conf/push-config.yml |
| 39 | + when: main_push_enable or http_push_enable or stream_push_enable |
40 | 40 |
|
41 |
| -- import_tasks: conf/setup-status.yml |
42 |
| - when: status_enable |
| 41 | + - import_tasks: conf/template-config.yml |
| 42 | + when: main_template_enable or http_template_enable or stream_template_enable |
43 | 43 |
|
44 |
| -- import_tasks: conf/setup-rest-api.yml |
45 |
| - when: rest_api_enable and type == "plus" |
| 44 | + - import_tasks: conf/setup-status.yml |
| 45 | + when: status_enable |
46 | 46 |
|
47 |
| -- import_tasks: amplify/install-amplify.yml |
48 |
| - when: amplify_enable and amplify_key is defined and amplify_key |
| 47 | + - import_tasks: conf/setup-rest-api.yml |
| 48 | + when: rest_api_enable and type == "plus" |
| 49 | + |
| 50 | + - import_tasks: amplify/install-amplify.yml |
| 51 | + when: amplify_enable and amplify_key is defined and amplify_key |
| 52 | + |
| 53 | + when: nginx_enable |
49 | 54 |
|
50 | 55 | - import_tasks: unit/install-unit.yml
|
51 | 56 | when: unit_enable
|
0 commit comments