File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 6
6
notify : " (Handler: All OSs) Reload NGINX"
7
7
when : main_upload_enable
8
8
9
+ - name : " (Setup: All NGINX) Ensure NGINX HTTP Directory Exists"
10
+ file :
11
+ path : /etc/nginx/conf.d/http
12
+ state : directory
13
+ when : http_template_enable
14
+
9
15
- name : " (Setup: All NGINX) Upload NGINX HTTP Configuration Files"
10
16
copy :
11
17
src : " {{ item }}"
12
- dest : /etc/nginx/conf.d/
18
+ dest : /etc/nginx/conf.d/http
13
19
with_fileglob :
14
20
- " {{ http_upload_location }}"
15
21
notify : " (Handler: All OSs) Reload NGINX"
16
22
when : http_upload_enable
17
23
24
+ - name : " (Setup: All NGINX) Ensure NGINX Stream Directory Exists"
25
+ file :
26
+ path : /etc/nginx/conf.d/stream
27
+ state : directory
28
+ when : stream_template_enable
29
+
18
30
- name : " (Setup: All NGINX) Upload NGINX Stream Configuration Files"
19
31
copy :
20
32
src : " {{ item }}"
21
- dest : /etc/nginx/conf.d/
33
+ dest : /etc/nginx/conf.d/stream
22
34
with_fileglob :
23
35
- " {{ stream_upload_location }}"
24
36
notify : " (Handler: All OSs) Reload NGINX"
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : " (Setup: Open Source NGINX) Enable Open Source NGINX Status"
3
3
blockinfile :
4
- path : /etc/nginx/conf.d/stub_status.conf
4
+ path : " {{ (http_template_enable) | ternary(' /etc/nginx/conf.d/http/ stub_status.conf','/etc/nginx/conf.d/stub_status.conf') }} "
5
5
create : yes
6
6
block : |
7
7
server {
17
17
18
18
- name : " (Setup: NGINX Plus) Enable NGINX Plus Status"
19
19
blockinfile :
20
- path : /etc/nginx/conf.d/status.conf
20
+ path : " {{ (http_template_enable) | ternary(' /etc/nginx/conf.d/http/ status.conf','/etc/nginx/conf.d/status.conf') }} "
21
21
create : yes
22
22
block : |
23
23
server {
Original file line number Diff line number Diff line change 5
5
dest : /etc/nginx/nginx.conf
6
6
notify : " (Handler: All OSs) Reload NGINX"
7
7
8
- - name : " (Setup: All NGINX) Ensures /etc/nginx/conf.d/http dir exists "
8
+ - name : " (Setup: All NGINX) Ensure NGINX HTTP Directory Exists "
9
9
file :
10
10
path : /etc/nginx/conf.d/http
11
11
state : directory
20
20
when : http_template_enable
21
21
notify : " (Handler: All OSs) Reload NGINX"
22
22
23
- - name : " (Setup: All NGINX) Ensures /etc/nginx/conf.d/stream dir exists "
23
+ - name : " (Setup: All NGINX) Ensure NGINX Stream Directory Exists "
24
24
file :
25
25
path : /etc/nginx/conf.d/stream
26
26
state : directory
You can’t perform that action at this time.
0 commit comments