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

Only delete site entries that are new to letsencrypt #3

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

Conversation

bchess
Copy link

@bchess bchess commented Apr 9, 2018

The role currently deletes all entries out of sites-enabled upon each run, disrupting the ability for nginx to serve sites while ansible is running. It also means it never converges if there are any letencrypt sites.

I'm not certain why it's necessary to delete these in the first place. My guess is that these entries are deleted in preparation of an all-new letsencrypt cert, since we need to create a valid nginx entry for the domain but do not yet have an cert and key to reference.

This change makes it so it only acts on site.file_names that are new to letsencrypt.

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