diff --git a/tasks/install.yml b/tasks/install.yml index 11c4f4c..b2939ff 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -32,8 +32,8 @@ - name: Install Nginx config notify: nginx | Restart Nginx - copy: - src: 'files/nginx.conf' + template: + src: 'templates/nginx.conf' dest: '{{ nginx__dir_etc }}/nginx.conf' mode: 'u=rw,go=r' owner: root diff --git a/files/nginx.conf b/templates/nginx.conf similarity index 97% rename from files/nginx.conf rename to templates/nginx.conf index b86a4b1..f686fc0 100644 --- a/files/nginx.conf +++ b/templates/nginx.conf @@ -7,10 +7,12 @@ events { worker_connections 768; # multi_accept on; } +{% if nginx__stream %} stream { include /etc/nginx/stream.conf; } +{% endif %} http { ##