Initial commit

This commit is contained in:
nemunaire 2023-03-26 12:33:14 +02:00
commit 8c23da5bf5
4 changed files with 74 additions and 0 deletions

21
tasks/main.yml Normal file
View file

@ -0,0 +1,21 @@
---
- name: ensure conf.d directory exists
ansible.builtin.file:
path: "/etc/nginx/conf.d/"
state: directory
- name: install nginx-stream module
apk:
name:
- nginx-mod-stream
state: present
tags:
- packages
- name: configure nginx with stream module
template:
src: nginx.conf.j2
dest: "/etc/nginx/conf.d/stream.conf"
mode: 0644
notify:
- reload nginx