[FIX] Waits for 2 minutes to prevent not-found error in certbot

This commit is contained in:
Jorge Enrique Gómez Gómez 2021-04-08 20:53:38 -05:00
parent 190a8ca9db
commit fbe0dfe61c

View File

@ -40,6 +40,10 @@
- python3-certbot-nginx
state: latest
- name: Wait for the CNAME to get registered before requesting certificate
pause:
minutes: 2
- name: Request Let's Encrypt certificate
command:
cmd: 'certbot --redirect --agree-tos -m {{ email }} --hsts --nginx -n -d {{ container }}.{{ dominio }}'