File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 66
66
state : directory
67
67
mode : " 0755"
68
68
69
+ - name : Set nginx location behavior, fallback to default if no custom behavior is provided
70
+ set_fact :
71
+ nginx_location_behavior : " {{ nginx.custom_nginx_location_behavior | default(['try_files @rewrite /index.php?$query_string;']) }}"
72
+
69
73
- name : Copy project type-specific configuration in place.
70
74
ansible.builtin.template :
71
75
src : " {{ item }}.j2"
150
154
- nginx.overrides is defined
151
155
- nginx.overrides | length > 0
152
156
153
- - name : Set nginx location behavior, fallback to default if no custom behavior is provided
154
- set_fact :
155
- nginx_location_behavior : " {{ nginx.custom_nginx_location_behavior | default(['try_files @rewrite /index.php?$query_string;']) }}"
156
-
157
157
- name : Test NGINX configuration.
158
158
ansible.builtin.command : nginx -t
159
159
register : _nginx_test_result
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ location / {
22
22
# @todo
23
23
# limit_req zone=bots burst=5 nodelay;
24
24
{% endif %}
25
- {{ nginx. nginx_location_behavior | join("\n ") }}
25
+ {{ nginx_location_behavior | join("\n ") }}
26
26
}
27
27
28
28
############ Blacklist block.
You can’t perform that action at this time.
0 commit comments