|
18 | 18 | - name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX"
|
19 | 19 | block:
|
20 | 20 |
|
21 |
| - - include_tasks: "{{ role_path }}/tasks/opensource/install-oss.yml" |
22 |
| - when: nginx_type == "opensource" |
23 |
| - tags: nginx_install_oss |
24 |
| - |
25 |
| - - include_tasks: "{{ role_path }}/tasks/plus/install-plus.yml" |
26 |
| - when: nginx_type == "plus" |
27 |
| - tags: nginx_install_plus |
28 |
| - |
29 |
| - - include_tasks: "{{ role_path }}/tasks/conf/cleanup-config.yml" |
30 |
| - when: nginx_cleanup_config | bool |
31 |
| - tags: nginx_cleanup_config |
32 |
| - |
33 |
| - - include_tasks: "{{ role_path }}/tasks/conf/upload-config.yml" |
34 |
| - when: nginx_main_upload_enable |
35 |
| - or nginx_http_upload_enable |
36 |
| - or nginx_stream_upload_enable |
37 |
| - or nginx_html_upload_enable |
38 |
| - or nginx_ssl_upload_enable |
39 |
| - tags: nginx_upload_config |
40 |
| - |
41 |
| - - include_tasks: "{{ role_path }}/tasks/conf/template-config.yml" |
42 |
| - when: nginx_main_template_enable |
43 |
| - or nginx_http_template_enable |
44 |
| - or nginx_stream_template_enable |
45 |
| - or nginx_rest_api_enable |
46 |
| - tags: nginx_template_config |
47 |
| - |
48 |
| - - include_tasks: "{{ role_path }}/tasks/conf/setup-status.yml" |
49 |
| - when: nginx_status_enable | bool |
50 |
| - tags: nginx_setup_status |
51 |
| - |
52 |
| - - include_tasks: "{{ role_path }}/tasks/modules/install-modules.yml" |
53 |
| - when: true in nginx_modules.values() |
54 |
| - tags: nginx_install_modules |
55 |
| - |
56 |
| - - include_tasks: "{{ role_path }}/tasks/plus/delete-license.yml" |
57 |
| - when: |
58 |
| - - nginx_type == "plus" |
59 |
| - - nginx_delete_license |
60 |
| - tags: nginx_delete_license |
| 21 | + - block: |
| 22 | + - include_tasks: "{{ role_path }}/tasks/opensource/install-oss.yml" |
| 23 | + when: nginx_type == "opensource" |
| 24 | + tags: nginx_install_oss |
| 25 | + |
| 26 | + - include_tasks: "{{ role_path }}/tasks/plus/install-plus.yml" |
| 27 | + when: nginx_type == "plus" |
| 28 | + tags: nginx_install_plus |
| 29 | + |
| 30 | + - include_tasks: "{{ role_path }}/tasks/modules/install-modules.yml" |
| 31 | + when: true in nginx_modules.values() |
| 32 | + tags: nginx_install_modules |
| 33 | + |
| 34 | + - include_tasks: "{{ role_path }}/tasks/plus/delete-license.yml" |
| 35 | + when: |
| 36 | + - nginx_type == "plus" |
| 37 | + - nginx_delete_license |
| 38 | + tags: nginx_delete_license |
| 39 | + when: nginx_install | bool |
| 40 | + |
| 41 | + - block: |
| 42 | + - include_tasks: "{{ role_path }}/tasks/conf/cleanup-config.yml" |
| 43 | + when: nginx_cleanup_config | bool |
| 44 | + tags: nginx_cleanup_config |
| 45 | + |
| 46 | + - include_tasks: "{{ role_path }}/tasks/conf/upload-config.yml" |
| 47 | + when: nginx_main_upload_enable |
| 48 | + or nginx_http_upload_enable |
| 49 | + or nginx_stream_upload_enable |
| 50 | + or nginx_html_upload_enable |
| 51 | + or nginx_ssl_upload_enable |
| 52 | + tags: nginx_upload_config |
| 53 | + |
| 54 | + - include_tasks: "{{ role_path }}/tasks/conf/template-config.yml" |
| 55 | + when: nginx_main_template_enable |
| 56 | + or nginx_http_template_enable |
| 57 | + or nginx_stream_template_enable |
| 58 | + or nginx_rest_api_enable |
| 59 | + tags: nginx_template_config |
| 60 | + |
| 61 | + - include_tasks: "{{ role_path }}/tasks/conf/setup-status.yml" |
| 62 | + when: nginx_status_enable | bool |
| 63 | + tags: nginx_setup_status |
| 64 | + when: nginx_configure | bool |
61 | 65 |
|
62 | 66 | - name: "(Config: All OSs) Ensure NGINX is Running"
|
63 | 67 | meta: flush_handlers
|
|
69 | 73 | - include_tasks: "{{ role_path }}/tasks/conf/logrotate.yml"
|
70 | 74 | when: nginx_logrotate_conf_enable | bool
|
71 | 75 | tags: nginx_logrotate_config
|
72 |
| - |
73 | 76 | when: nginx_enable | bool
|
74 | 77 |
|
75 | 78 | - include_tasks: "{{ role_path }}/tasks/amplify/install-amplify.yml"
|
|
0 commit comments