ADD Restores nginx proxy setup

This commit is contained in:
Jorge Enrique Gómez Gómez 2020-12-17 02:29:43 -05:00
parent 86301a407a
commit 0caee4cb68
2 changed files with 13 additions and 3 deletions

View File

@ -16,3 +16,13 @@
- lxchost
vars:
dominio: agofer.net
- hosts: nginx
gather_facts: yes
roles:
- nginxproxy
vars:
dominio: agofer.net
ansible_python_interpreter: python3
ansible_connection: lxd
ansible_host: local:nginx

View File

@ -22,9 +22,9 @@
name: nginx
state: restarted
#-name: Request Let's Encrypt certificate
# command:
# cmd: 'certbot --redirect --agree-tos -m {{ email }} --hsts --nginx -n -d {{ container }}.{{ dominio }}'
- name: Request Let's Encrypt certificate
command:
cmd: 'certbot --redirect --agree-tos -m {{ email }} --hsts --nginx -n -d {{ container }}.{{ dominio }}'
# Certbot doesn't add proxy_protocol.
# (https://github.com/certbot/certbot/issues/8057)