diff --git a/ansible/roles/4-certbot/tasks/main.yml b/ansible/roles/4-certbot/tasks/main.yml index dbd6e477..0056480f 100644 --- a/ansible/roles/4-certbot/tasks/main.yml +++ b/ansible/roles/4-certbot/tasks/main.yml @@ -31,7 +31,7 @@ state: stopped - name: Generate new certificate if one doesn't exist. - shell: "certbot certonly --non-interactive --config /etc/letsencrypt/conf.d/nk20.ini -d {{note.server_name}}" + shell: "certbot certonly --non-interactive --agree-tos --config /etc/letsencrypt/conf.d/nk20.ini -d {{note.server_name}}" when: letsencrypt_cert.stat.exists == False - name: Restart services to allow certbot to generate a cert.