andreaswolf / ansible-role-letsencrypt

Ansible role for generating certificates with acme-tiny via Let’s encrypt
46 stars 20 forks source link

Check if certificate generation script changed anything #12

Open andreaswolf opened 8 years ago

andreaswolf commented 8 years ago

Currently, the role will always return at least one step as changed, making it look non-idempotent: The "generate the initial certificate" (which btw. should be renamed to use the plural) step does not correctly check in the script if anything has changed at all.

I suspect that we can somehow – from the script – tell Ansible via the return code or with suppressing the output that no data was changed.