Skip to content
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

Allow for certificates to be expanded to include new domains #208

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

theS1LV3R
Copy link

#49 has been stale since 2020 (but somehow not closed by the stale bot), and #180 and #171 were both closed by the stale bot.

In comparison to #180, this PR only adds --expand if explicitly set to do it with a new var, certbot_expand, as well as letting certbot handle parsing of existing domains instead of handling it through ansible.

We also check if any changes were made when running certbot by checking if its output contains "no action taken" or not instead of trying to save any state, keeping the entire role stateless.

We removed the task "Check if certificate already exists." because as mentioned above, certbot will gracefully handle if the cert already exists, and we check for that by looking for the aforementioned string.

Copy link

This pr 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.

@github-actions github-actions bot added the stale label Jun 10, 2024
@theS1LV3R
Copy link
Author

I still believe this is a good addition, as well as the repo is marked as "Maintained?" on Jeff Geerling's Ansible Content

@github-actions github-actions bot removed the stale label Jun 17, 2024
@strophy
Copy link

strophy commented Jul 15, 2024

Strongly support adding this, I just got in a real mess trying to add a domain to an existing certificate deployed by this role. Using the branch from this PR resolved my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants