thefinn93 / ansible-letsencrypt

An ansible role to generate TLS certificates and get them signed by Let's Encrypt
GNU General Public License v3.0
442 stars 122 forks source link

Error on running on a host with an existing certificate #49

Closed rfleschenberg closed 7 years ago

rfleschenberg commented 7 years ago

When running against a host that already has a certificate, I run into this error:

[...]
"failed": true, "rc": 1, "start": "2017-02-06 14:39:29.266513", "stderr": "Saving debug log to /var/log/letsencrypt/letsencrypt.log\nCert not yet due for renewal\nAn unexpected error occurred:\nEOFError: EOF when reading a line\nPlease see the logfiles in /var/log/letsencrypt for more details."
[...]

The problem seems to be that certbot prompts for what to do. Passing the -n option seems to fix this. I'll send a PR.