|
18 | 18 | or nginx_controller_enable
|
19 | 19 | or nginx_unit_enable
|
20 | 20 |
|
| 21 | +- import_tasks: keys/apk-key.yml |
| 22 | + when: ansible_os_family == "Alpine" |
| 23 | + |
21 | 24 | - name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX"
|
22 | 25 | block:
|
23 | 26 |
|
|
28 | 31 | when: nginx_type == "plus"
|
29 | 32 |
|
30 | 33 | - import_tasks: conf/cleanup-config.yml
|
31 |
| - when: nginx_cleanup_config |
| 34 | + when: nginx_cleanup_config | bool |
32 | 35 |
|
33 | 36 | - import_tasks: modules/install-modules.yml
|
34 | 37 | when: true in nginx_modules.values()
|
|
47 | 50 | or nginx_rest_api_enable
|
48 | 51 |
|
49 | 52 | - import_tasks: conf/setup-status.yml
|
50 |
| - when: nginx_status_enable |
| 53 | + when: nginx_status_enable | bool |
51 | 54 |
|
52 | 55 | - import_tasks: conf/debug-output.yml
|
53 |
| - when: nginx_debug_output |
| 56 | + when: nginx_debug_output | bool |
54 | 57 |
|
55 |
| - when: nginx_enable |
| 58 | + when: nginx_enable | bool |
56 | 59 |
|
57 | 60 | - import_tasks: amplify/install-amplify.yml
|
58 | 61 | when:
|
59 |
| - - nginx_amplify_enable |
| 62 | + - nginx_amplify_enable | bool |
60 | 63 | - nginx_amplify_api_key is defined
|
61 | 64 | - nginx_amplify_api_key | length > 0
|
62 | 65 |
|
63 | 66 | - import_tasks: controller/install-controller.yml
|
64 | 67 | when:
|
65 |
| - - nginx_controller_enable |
| 68 | + - nginx_controller_enable | bool |
66 | 69 | - nginx_controller_api_key is defined
|
67 |
| - - nginx_controller_api_key |
| 70 | + - nginx_controller_api_key | length > 0 |
68 | 71 | - nginx_controller_api_endpoint is defined
|
69 |
| - - nginx_controller_api_endpoint |
| 72 | + - nginx_controller_api_endpoint | length > 0 |
70 | 73 |
|
71 | 74 | - import_tasks: unit/install-unit.yml
|
72 |
| - when: nginx_unit_enable |
| 75 | + when: nginx_unit_enable | bool |
0 commit comments