File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+ - name : " (Setup: All NGINX) Check NGINX Default Configuration File Exists"
3
+ stat :
4
+ path : /etc/nginx/conf.d/default.conf
5
+ register : default_exists
6
+
7
+ - name : " (Setup: All NGINX) Backup NGINX Default Configuration File"
8
+ copy :
9
+ remote_src : yes
10
+ src : /etc/nginx/conf.d/default.conf
11
+ dest : /etc/nginx/conf.d/default.conf.bak
12
+ when : default_exists.stat.exists
13
+
14
+ - name : " (Setup: All NGINX) Delete NGINX Default Configuration File"
15
+ file :
16
+ path : /etc/nginx/conf.d/default.conf
17
+ state : absent
18
+ when : default_exists.stat.exists
19
+
2
20
- name : " (Setup: All NGINX) Upload NGINX Main Configuration File"
3
21
copy :
4
22
src : " {{ main_upload_location }}"
Original file line number Diff line number Diff line change 1
1
---
2
+ - name : " (Setup: All NGINX) Check NGINX Default Configuration File Exists"
3
+ stat :
4
+ path : /etc/nginx/conf.d/default.conf
5
+ register : default_exists
6
+
7
+ - name : " (Setup: All NGINX) Backup NGINX Default Configuration File"
8
+ copy :
9
+ remote_src : yes
10
+ src : /etc/nginx/conf.d/default.conf
11
+ dest : /etc/nginx/conf.d/default.conf.bak
12
+ when : default_exists.stat.exists
13
+
14
+ - name : " (Setup: All NGINX) Delete NGINX Default Configuration File"
15
+ file :
16
+ path : /etc/nginx/conf.d/default.conf
17
+ state : absent
18
+ when : default_exists.stat.exists
19
+
2
20
- name : " (Setup: All NGINX) Dynamically Generate NGINX Main Configuration File"
3
21
template :
4
22
src : nginx.conf.j2
You can’t perform that action at this time.
0 commit comments