1
0
forked from HPC/HPCplaybooks

Added role for jwilder nginx proxy.

This is useful when you want to handle ssl or when you want to proxy
multiple containers on a single host.
This commit is contained in:
Egon Rijpkema
2018-02-13 10:07:24 +01:00
parent 4b91b61b66
commit 593082f710
4 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# Install a nginx reverse proxy with a systemd unit file.
# See https://github.com/jwilder/nginx-proxy
---
- name: install service file.
template:
src: templates/nginx-proxy.service
dest: /etc/systemd/system/nginx-proxy.service
mode: 644
owner: root
group: root
- command: systemctl daemon-reload
- name: start service at boot.
command: systemctl reenable nginx-proxy.service
- name: make sure service is started
systemd:
name: nginx-proxy.service
state: restarted