Install Nginx stream config

This commit is contained in:
Alex Kotov 2023-03-30 10:26:01 +04:00
parent 71f1b37c0c
commit 3f02fc878c
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
3 changed files with 14 additions and 0 deletions

View File

@ -3,3 +3,4 @@ nginx__state: null
nginx__remove_default: true
nginx__upstreams: []
nginx__sites: []
nginx__stream: ''

View File

@ -8,6 +8,10 @@ events {
# multi_accept on;
}
stream {
include /etc/nginx/stream.conf;
}
http {
##

View File

@ -36,6 +36,15 @@
owner: root
group: root
- name: Install Nginx stream config
notify: nginx | Restart Nginx
copy:
content: '{{ nginx__stream }}'
dest: '{{ nginx__confd_dir }}/stream.conf'
mode: 'u=rw,go=r'
owner: root
group: root
- name: Remove Nginx default site
notify: nginx | Restart Nginx
file: