geerlingguy / ansible-role-certbot

Ansible Role - Certbot (for Let's Encrypt)
https://galaxy.ansible.com/geerlingguy/certbot/
MIT License
780 stars 346 forks source link

Allow for configurable cronjob name and file #191

Closed chrisvanmeer closed 7 months ago

chrisvanmeer commented 1 year ago

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.

stale[bot] commented 1 year ago

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.

chrisvanmeer commented 1 year ago

Not stale by choice.

stale[bot] commented 1 year ago

This issue is no longer marked for closure.

github-actions[bot] commented 9 months ago

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] commented 7 months ago

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.