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