Install Nginx stream config
This commit is contained in:
parent
71f1b37c0c
commit
3f02fc878c
|
@ -3,3 +3,4 @@ nginx__state: null
|
|||
nginx__remove_default: true
|
||||
nginx__upstreams: []
|
||||
nginx__sites: []
|
||||
nginx__stream: ''
|
||||
|
|
|
@ -8,6 +8,10 @@ events {
|
|||
# multi_accept on;
|
||||
}
|
||||
|
||||
stream {
|
||||
include /etc/nginx/stream.conf;
|
||||
}
|
||||
|
||||
http {
|
||||
|
||||
##
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue