2018-02-20 21:28:14 +01:00
|
|
|
---
|
|
|
|
- name: "(Setup: All NGINX) Upload NGINX Main Configuration File"
|
|
|
|
copy:
|
2018-09-15 02:27:12 +02:00
|
|
|
src: "{{ nginx_main_push_location }}"
|
2018-02-20 21:28:14 +01:00
|
|
|
dest: /etc/nginx/nginx.conf
|
2018-04-18 02:21:31 +02:00
|
|
|
backup: yes
|
2018-02-20 21:28:14 +01:00
|
|
|
notify: "(Handler: All OSs) Reload NGINX"
|
2018-09-15 01:28:20 +02:00
|
|
|
when: nginx_main_push_enable
|
2018-02-20 21:28:14 +01:00
|
|
|
|
2018-04-05 23:32:37 +02:00
|
|
|
- name: "(Setup: All NGINX) Ensure NGINX HTTP Directory Exists"
|
|
|
|
file:
|
|
|
|
path: /etc/nginx/conf.d/http
|
|
|
|
state: directory
|
2018-09-15 01:28:20 +02:00
|
|
|
when: nginx_http_push_enable
|
2018-04-05 23:32:37 +02:00
|
|
|
|
2018-02-20 21:28:14 +01:00
|
|
|
- name: "(Setup: All NGINX) Upload NGINX HTTP Configuration Files"
|
|
|
|
copy:
|
|
|
|
src: "{{ item }}"
|
2018-04-05 23:32:37 +02:00
|
|
|
dest: /etc/nginx/conf.d/http
|
2018-04-18 02:21:31 +02:00
|
|
|
backup: yes
|
2018-02-20 21:28:14 +01:00
|
|
|
with_fileglob:
|
2018-09-15 02:27:12 +02:00
|
|
|
- "{{ nginx_http_push_location }}"
|
2018-02-20 21:28:14 +01:00
|
|
|
notify: "(Handler: All OSs) Reload NGINX"
|
2018-09-15 01:28:20 +02:00
|
|
|
when: nginx_http_push_enable
|
2018-02-20 21:28:14 +01:00
|
|
|
|
2018-04-05 23:32:37 +02:00
|
|
|
- name: "(Setup: All NGINX) Ensure NGINX Stream Directory Exists"
|
|
|
|
file:
|
|
|
|
path: /etc/nginx/conf.d/stream
|
|
|
|
state: directory
|
2018-09-15 01:28:20 +02:00
|
|
|
when: nginx_stream_push_enable
|
2018-04-05 23:32:37 +02:00
|
|
|
|
2018-02-20 21:28:14 +01:00
|
|
|
- name: "(Setup: All NGINX) Upload NGINX Stream Configuration Files"
|
|
|
|
copy:
|
|
|
|
src: "{{ item }}"
|
2018-04-05 23:32:37 +02:00
|
|
|
dest: /etc/nginx/conf.d/stream
|
2018-04-18 02:21:31 +02:00
|
|
|
backup: yes
|
2018-02-20 21:28:14 +01:00
|
|
|
with_fileglob:
|
2018-09-15 02:27:12 +02:00
|
|
|
- "{{ nginx_stream_push_location }}"
|
2018-02-20 21:28:14 +01:00
|
|
|
notify: "(Handler: All OSs) Reload NGINX"
|
2018-09-15 01:28:20 +02:00
|
|
|
when: nginx_stream_push_enable
|