-
-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to detect a new domain has been added #49
Comments
geerlingguy#49 Handle domain list change for a certificate
Same issue here. |
As a work-around, when dealing with a change in the domain list, I found that manually executing |
Another workaround:
This will cause each domain to be checked on its own |
I've just run into this as well can confirm the workaround from @madhermit works on Ubuntu 18.04 |
I can confirm that @madhermit's workaround works, but would be good to have this solved |
Same issue here. Any thoughts on a fix? Md5 sum of domains dict stored somewhere we can check? |
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! Please read this blog post to see the reasons why I mark issues as stale. |
There is still a solution proposed for this issue with #50. |
This issue is no longer marked for closure. |
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! Please read this blog post to see the reasons why I mark issues as stale. |
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details. |
The workaround did not work for me because adding a second domain will fetch a new certificate instead of adding the domain to the existing cert. I would have to make an extra nginx config for the (sub)-domain to point to the extra cert. |
Description
The role is currently not able to detect that a domain has been added for a certificate. Thus if we add a new domain to our list, nothing happens (generation is skipped).
What I would expect: the domain list change is detected and Certbot is run again (for e.g. for a renewal including the added domains).
Could we add a way to test for any change in the domain list and issue again the certificate when the list changed?
How to reproduce
First run the role with a domain list containing one to N items:
(Let the configuration being applied)
Then re-run the role after adding one to N domains:
(Here the certification will be skipped, resulting on
example3.com
andexample4.com
not being part of the certificate)Implementation
This is due to the condition detecting that a certificate exists: it only checks we have a certificate of the name of the first domain.
ansible-role-certbot/tasks/create-cert-standalone.yml
Line 2 in d3f98e4
This condition should be able to detect whether current existing certificate (if any) covers the same domains as the one provided by the role variables.
The text was updated successfully, but these errors were encountered: