Initial commit
This commit is contained in:
commit
8c23da5bf5
4 changed files with 74 additions and 0 deletions
21
tasks/main.yml
Normal file
21
tasks/main.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue