File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed 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"
9
+ file :
10
+ path : /etc/nginx/conf.d/http
11
+ state : directory
12
+ when : http_template_enable
13
+
8
14
- name : " (Setup: All NGINX) Dynamically Generate NGINX HTTP Configuration Files"
9
15
template :
10
16
src : " {{ item }}"
11
- dest : /etc/nginx/conf.d/{{ item | basename | regex_replace('\.j2','') }}
17
+ dest : /etc/nginx/conf.d/http/ {{ item | basename | regex_replace('\.j2','') }}
12
18
with_fileglob :
13
19
- " ../templates/http/*.j2"
20
+ when : http_template_enable
14
21
notify : " (Handler: All OSs) Reload NGINX"
15
22
23
+ - name : " (Setup: All NGINX) Ensures /etc/nginx/conf.d/stream dir exists"
24
+ file :
25
+ path : /etc/nginx/conf.d/stream
26
+ state : directory
27
+ when : stream_template_enable
28
+
16
29
- name : " (Setup: All NGINX) Dynamically Generate NGINX Stream Configuration Files"
17
30
template :
18
31
src : " {{ item }}"
19
- dest : /etc/nginx/conf.d/{{ item | basename | regex_replace('\.j2','') }}
32
+ dest : /etc/nginx/conf.d/stream/ {{ item | basename | regex_replace('\.j2','') }}
20
33
with_fileglob :
21
34
- " ../templates/stream/*.j2"
35
+ when : stream_template_enable
22
36
notify : " (Handler: All OSs) Reload NGINX"
You can’t perform that action at this time.
0 commit comments