ansible-acme-sh icon indicating copy to clipboard operation
ansible-acme-sh copied to clipboard

Add support for deploy hooks

Open nadley opened this issue 4 years ago • 7 comments

Hi,

This is a small pull request to add the ability to your role to call deploy hook from acme (https://github.com/acmesh-official/acme.sh/wiki/deployhooks).

I'll be glad to discuss about this PR if needed

Regards

nadley avatar Nov 19 '20 18:11 nadley

Hi, thanks for the PR.

This isn't a feature I've used personally. What platforms have you tested this on?

nickjj avatar Nov 20 '20 12:11 nickjj

Hi, thanks for the PR.

This isn't a feature I've used personally. What platforms have you tested this on?

You're welcome, I'll update soon this PR with small improvements and fixing regarding you're comments. This feature is already provided by Acme.sh himself so it should work everywhere but in my case I'm doing my test on Debian 10 / 9.

nadley avatar Nov 20 '20 13:11 nadley

Is there a case to be made to include a default deploy_hook which does nothing by default but is defined and available to be overwritten like some of the other vars that have defaults?

For example, would you ever want to use the same deploy hook for multiple projects?

nickjj avatar Nov 21 '20 13:11 nickjj

Is there a case to be made to include a default deploy_hook which does nothing by default but is defined and available to be overwritten like some of the other vars that have defaults?

For example, would you ever want to use the same deploy hook for multiple projects?

Yes I forgot to add this capability, but it can be useful to have a default hook value to avoid defining the deploy hook for each domains and only override it only when necessary.

I'll add and empty default value et update the PR.

nadley avatar Nov 23 '20 10:11 nadley

Thanks.

Can you roll all of this up into 1 commit with a message of "Add deploy hook feature" after addressing the last review and example docs request.

nickjj avatar Nov 24 '20 11:11 nickjj

Can you also add a working example in the docs at the end of the other examples?

One that goes over configuring a specific hook for a domain (not using the default)?

nickjj avatar Nov 24 '20 11:11 nickjj

Hi @nickjj ,

Hope this time everything is OK ;-)

nadley avatar Nov 27 '20 15:11 nadley