Skip to content

Commit a8aeee1

Browse files
authored
Merge pull request #24 from nginxinc/(bug)/merge-config-upload-variable
Replace *_upload_enable with *_push_enable
2 parents ae27bdc + 5c79246 commit a8aeee1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tasks/conf/push-config.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,34 @@
22
- name: "(Setup: All NGINX) Check NGINX Default Configuration File Exists"
33
stat:
44
path: /etc/nginx/conf.d/default.conf
5-
when: main_upload_enable
5+
when: main_push_enable
66
register: default_exists
77

88
- name: "(Setup: All NGINX) Backup NGINX Default Configuration File"
99
copy:
1010
remote_src: yes
1111
src: /etc/nginx/conf.d/default.conf
1212
dest: /etc/nginx/conf.d/default.conf.bak
13-
when: default_exists.stat.exists and main_upload_enable
13+
when: default_exists.stat.exists and main_push_enable
1414

1515
- name: "(Setup: All NGINX) Delete NGINX Default Configuration File"
1616
file:
1717
path: /etc/nginx/conf.d/default.conf
1818
state: absent
19-
when: default_exists.stat.exists and main_upload_enable
19+
when: default_exists.stat.exists and main_push_enable
2020

2121
- name: "(Setup: All NGINX) Upload NGINX Main Configuration File"
2222
copy:
2323
src: "{{ main_upload_location }}"
2424
dest: /etc/nginx/nginx.conf
2525
notify: "(Handler: All OSs) Reload NGINX"
26-
when: main_upload_enable
26+
when: main_push_enable
2727

2828
- name: "(Setup: All NGINX) Ensure NGINX HTTP Directory Exists"
2929
file:
3030
path: /etc/nginx/conf.d/http
3131
state: directory
32-
when: http_template_enable
32+
when: http_push_enable
3333

3434
- name: "(Setup: All NGINX) Upload NGINX HTTP Configuration Files"
3535
copy:
@@ -38,13 +38,13 @@
3838
with_fileglob:
3939
- "{{ http_upload_location }}"
4040
notify: "(Handler: All OSs) Reload NGINX"
41-
when: http_upload_enable
41+
when: http_push_enablee
4242

4343
- name: "(Setup: All NGINX) Ensure NGINX Stream Directory Exists"
4444
file:
4545
path: /etc/nginx/conf.d/stream
4646
state: directory
47-
when: stream_template_enable
47+
when: stream_push_enable
4848

4949
- name: "(Setup: All NGINX) Upload NGINX Stream Configuration Files"
5050
copy:
@@ -53,4 +53,4 @@
5353
with_fileglob:
5454
- "{{ stream_upload_location }}"
5555
notify: "(Handler: All OSs) Reload NGINX"
56-
when: stream_upload_enable
56+
when: stream_push_enable

0 commit comments

Comments
 (0)