thefinn93 / ansible-letsencrypt

An ansible role to generate TLS certificates and get them signed by Let's Encrypt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible crashes on editing the ini file

ehmo opened this issue · comments

Seems like the ConfigParser is expecting a clean .ini file but the file generated by letsencrypt starts with 4 lines of certificate and then there are values.

cert = /etc/letsencrypt/live/domain/cert.pem
privkey = /etc/letsencrypt/live/domain/privkey.pem
chain = /etc/letsencrypt/live/domain/chain.pem
fullchain = /etc/letsencrypt/live/domain/fullchain.pem

# Options and defaults used in the renewal process
[renewalparams]
no_self_upgrade = False
no_verify_ssl = False
ifaces = None
register_unsafely_without_email = False

The resulting error is ConfigParser.MissingSectionHeaderError: File contains no section headers. which makes sense, as there is no header section at the beginning.

Any idea why is this? I mean, I can "manually" add header section, but will it not tamper with the letsencrypt?

commented

Duplicate of #14. I'll go revert the renewal fixes for now, cuz I haven't had time to get it working

Oh, sorry for the duplication.