add support for generic streams

This commit is contained in:
nd 2021-09-04 22:44:41 +02:00
parent 4d82b39ef9
commit 41841311e6
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
4 changed files with 48 additions and 0 deletions

View file

@ -22,6 +22,7 @@
pkg:
- nginx
- libnginx-mod-http-headers-more-filter
- libnginx-mod-stream
- goaccess
notify:
- delete nginx index.nginx-debian.html
@ -83,6 +84,17 @@
notify:
- restart nginx
- name: create and enable nginx streams
template:
src: stream.conf.j2
dest: "/etc/nginx/streams/{{ item.key }}"
owner: root
group: root
mode: 0644
with_dict: "{{ {}|combine(nginx.streams, recursive=True) }}"
notify:
- restart nginx
- name: delete nginx default config
file: path=/etc/nginx/sites-enabled/default state=absent