Installs certbot in nginx container

This commit is contained in:
Jorge Enrique Gómez Gómez 2021-03-28 03:44:29 +00:00
parent ee6e1956ce
commit 27429f0dd3

View File

@ -28,6 +28,11 @@
name: nginx name: nginx
state: restarted state: restarted
- name: Install Let's Encrypt certbot
apt:
name: certbot
state: latest
- name: Request Let's Encrypt certificate - name: Request Let's Encrypt certificate
command: command:
cmd: 'certbot --redirect --agree-tos -m {{ email }} --hsts --nginx -n -d {{ container }}.{{ dominio }}' cmd: 'certbot --redirect --agree-tos -m {{ email }} --hsts --nginx -n -d {{ container }}.{{ dominio }}'