ansible-role-certbot icon indicating copy to clipboard operation
ansible-role-certbot copied to clipboard

Allow for configurable cronjob name and file

Open chrisvanmeer opened this issue 2 years ago • 4 comments

Problem

I am in the position that I have two plays using certbot. The reason for these
two plays is that each of them uses a different authenticator on the same host. One uses TransIP, the other uses PowerDNS.

When setting certbot_auto_renew: true a cron job is created in /etc/cron.d
with the name of ansible_certbot-auto-renewal. My problem is that this is a
fixed file name. Whenever I run both plays, the cron file is overwritten by the
play that runs last.

Suggestion

Add a certbot_auto_renew_cron_file and certbot_auto_renew_cron_name
variable, allowing us to create multiple auto-renew cron jobs.

Workaround

Set certbot_auto_renew to false and create a task to create the cron job by
using the same variables as defined except changing the name and file.

chrisvanmeer avatar Feb 01 '23 12:02 chrisvanmeer

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

stale[bot] avatar May 21 '23 22:05 stale[bot]

Not stale by choice.

chrisvanmeer avatar May 22 '23 05:05 chrisvanmeer

This issue is no longer marked for closure.

stale[bot] avatar May 22 '23 05:05 stale[bot]

This issue 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[bot] avatar Nov 20 '23 12:11 github-actions[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

github-actions[bot] avatar Jan 22 '24 12:01 github-actions[bot]