|
4 | 4 | - import_tasks: keys/apt-key.yml
|
5 | 5 | when:
|
6 | 6 | - ansible_os_family == "Debian"
|
7 |
| - - nginx_install_from == "nginx_repository" or nginx_amplify_enable or nginx_controller_enable or nginx_unit_enable |
| 7 | + - nginx_install_from == "nginx_repository" |
| 8 | + or nginx_amplify_enable |
| 9 | + or nginx_controller_enable |
| 10 | + or nginx_unit_enable |
8 | 11 |
|
9 | 12 | - import_tasks: keys/rpm-key.yml
|
10 | 13 | when:
|
11 |
| - - ansible_os_family == "RedHat" or ansible_os_family == "Suse" |
12 |
| - - nginx_install_from == "nginx_repository" or nginx_amplify_enable or nginx_controller_enable or nginx_unit_enable |
| 14 | + - ansible_os_family == "RedHat" |
| 15 | + or ansible_os_family == "Suse" |
| 16 | + - nginx_install_from == "nginx_repository" |
| 17 | + or nginx_amplify_enable |
| 18 | + or nginx_controller_enable |
| 19 | + or nginx_unit_enable |
13 | 20 |
|
14 | 21 | - name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX"
|
15 | 22 | block:
|
|
24 | 31 | when: true in nginx_modules.values()
|
25 | 32 |
|
26 | 33 | - import_tasks: conf/upload-config.yml
|
27 |
| - when: nginx_main_upload_enable or nginx_http_upload_enable or nginx_stream_upload_enable or nginx_html_upload_enable or nginx_ssl_upload_enable |
| 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 |
28 | 39 |
|
29 | 40 | - import_tasks: conf/template-config.yml
|
30 |
| - when: nginx_main_template_enable or nginx_http_template_enable or nginx_stream_template_enable |
| 41 | + when: nginx_main_template_enable |
| 42 | + or nginx_http_template_enable |
| 43 | + or nginx_stream_template_enable |
31 | 44 |
|
32 | 45 | - import_tasks: conf/setup-status.yml
|
33 | 46 | when: nginx_status_enable
|
|
41 | 54 | when: nginx_enable
|
42 | 55 |
|
43 | 56 | - import_tasks: amplify/install-amplify.yml
|
44 |
| - when: nginx_amplify_enable and nginx_amplify_api_key is defined and nginx_amplify_api_key |
| 57 | + when: |
| 58 | + - nginx_amplify_enable |
| 59 | + - nginx_amplify_api_key is defined |
| 60 | + - nginx_amplify_api_key |
45 | 61 |
|
46 | 62 | - import_tasks: controller/install-controller.yml
|
47 |
| - when: nginx_controller_enable and nginx_controller_api_key is defined and nginx_controller_api_key and nginx_controller_api_endpoint is defined and nginx_controller_api_endpoint |
| 63 | + when: |
| 64 | + - nginx_controller_enable |
| 65 | + - nginx_controller_api_key is defined |
| 66 | + - nginx_controller_api_key |
| 67 | + - nginx_controller_api_endpoint is defined |
| 68 | + - nginx_controller_api_endpoint |
48 | 69 |
|
49 | 70 | - import_tasks: unit/install-unit.yml
|
50 | 71 | when: nginx_unit_enable
|
0 commit comments