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.

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.

None yet

1 participant