Implemented test-run for certbot due to letsencrypt restrictions

This commit is contained in:
2024-01-08 11:20:44 +01:00
parent db38b72373
commit bf421835c3
4 changed files with 18 additions and 11 deletions

View File

@@ -1,2 +1,5 @@
- name: recieve certbot certificate for {{domain}}
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
- name: recieve certbot certificate for {{ domain }}
command: >-
certbot certonly --agree-tos --email {{ administrator_email }}
--non-interactive --webroot -w /var/lib/letsencrypt/ -d {{ domain }}
{{ '--test-cert' if test_run | bool else '' }}