Merge branch 'master' of ssh://git-ssh.notandy.de:2222/ansible/roles/nginx

This commit is contained in:
nd 2021-10-23 17:06:44 +02:00
commit e6a42e31a4
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
6 changed files with 53 additions and 1 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