Created nginx-config-file-templates

This commit is contained in:
2022-10-21 08:33:08 +02:00
parent 7453f1e616
commit bb3d363094
6 changed files with 71 additions and 104 deletions

View File

@@ -1,3 +1,11 @@
- name: Deploy nginx configs
template:
src: "{{item.src}}"
dest: "{{item.dst}}"
loop:
- { src: 'nginx/proxy.conf.template', dst: '/opt/netmaker_server/nginx/conf/conf.d/proxy.conf' }
- { src: 'nginx/passthrough.conf.template', dst: '/opt/netmaker_server/nginx/conf/stream.d/passthrough.conf' }
- name: Start nginx service
command: "docker-compose --project-directory /opt/netmaker_server/ up -d nginx"
register: command