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