-
-
Notifications
You must be signed in to change notification settings - Fork 356
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
add --cert-name and --deploy-hook options #230
base: master
Are you sure you want to change the base?
Conversation
Does someone know why this fails? Seems unrelated to my PR:
|
0425d5d
to
943abd8
Compare
This PR fixes the CI issue and adds --cert-name and --deploy-hook. It would have been nice to have a second domain to test adding certificates in the CI. @geerlingguy I would be very happy if you could review+merge this PR :) |
How do these changes interact with the updates from #208 from @theS1LV3R ? Sorry don't have time to do a full review at the current moment :) |
So at least for me, this PR makes |
Is it possible to rebase this PR on master? I don't see the changes from https://github.com/geerlingguy/ansible-role-certbot/pull/208/files being updated, it looks like the branch forks from somewhere prior to current master. |
@geerlingguy sorry for the delay, I missed your answer. The reason why I started from #223 instead of #208 is that after some testing I noticed that The main difference is that #208 checks if there was a change based on the output of the certbot command: changed_when: "'no action taken' not in certbot_create.stdout" This PR provides a much more powerful approach as it explicitly checks the domains that a certain (named) certificate has: - name: Determine if domains have changed
set_fact:
letsencrypt_cert_domains_changed: "{{ letsencrypt_cert_domains != (cert_item.domains | map('trim') | select('!=', '') | list | sort) }}" TL;DR: |
@geerlingguy if you wish I can squash the commits for a clean history. |
Can be used like this: