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

Merged
jegomez merged 1 commits from wait-after-setting-cname into main 2021-04-09 01:53:55 +00:00

View File

@ -40,6 +40,10 @@
- python3-certbot-nginx - python3-certbot-nginx
state: latest state: latest
- name: Wait for the CNAME to get registered before requesting certificate
pause:
minutes: 2
- 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 }}'