|
2 | 2 | - name: "(Setup: All NGINX) Check NGINX Default Configuration File Exists"
|
3 | 3 | stat:
|
4 | 4 | path: /etc/nginx/conf.d/default.conf
|
5 |
| - when: main_upload_enable |
| 5 | + when: main_push_enable |
6 | 6 | register: default_exists
|
7 | 7 |
|
8 | 8 | - name: "(Setup: All NGINX) Backup NGINX Default Configuration File"
|
9 | 9 | copy:
|
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_upload_enable |
| 13 | + when: default_exists.stat.exists 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_upload_enable |
| 19 | + when: default_exists.stat.exists and main_push_enable |
20 | 20 |
|
21 | 21 | - name: "(Setup: All NGINX) Upload NGINX Main Configuration File"
|
22 | 22 | copy:
|
23 | 23 | src: "{{ main_upload_location }}"
|
24 | 24 | dest: /etc/nginx/nginx.conf
|
25 | 25 | notify: "(Handler: All OSs) Reload NGINX"
|
26 |
| - when: main_upload_enable |
| 26 | + when: main_push_enable |
27 | 27 |
|
28 | 28 | - name: "(Setup: All NGINX) Ensure NGINX HTTP Directory Exists"
|
29 | 29 | file:
|
30 | 30 | path: /etc/nginx/conf.d/http
|
31 | 31 | state: directory
|
32 |
| - when: http_template_enable |
| 32 | + when: http_push_enable |
33 | 33 |
|
34 | 34 | - name: "(Setup: All NGINX) Upload NGINX HTTP Configuration Files"
|
35 | 35 | copy:
|
|
38 | 38 | with_fileglob:
|
39 | 39 | - "{{ http_upload_location }}"
|
40 | 40 | notify: "(Handler: All OSs) Reload NGINX"
|
41 |
| - when: http_upload_enable |
| 41 | + when: http_push_enablee |
42 | 42 |
|
43 | 43 | - name: "(Setup: All NGINX) Ensure NGINX Stream Directory Exists"
|
44 | 44 | file:
|
45 | 45 | path: /etc/nginx/conf.d/stream
|
46 | 46 | state: directory
|
47 |
| - when: stream_template_enable |
| 47 | + when: stream_push_enable |
48 | 48 |
|
49 | 49 | - name: "(Setup: All NGINX) Upload NGINX Stream Configuration Files"
|
50 | 50 | copy:
|
|
53 | 53 | with_fileglob:
|
54 | 54 | - "{{ stream_upload_location }}"
|
55 | 55 | notify: "(Handler: All OSs) Reload NGINX"
|
56 |
| - when: stream_upload_enable |
| 56 | + when: stream_push_enable |
0 commit comments