mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2026-09-11 00:10:42 +02:00
Add certbot_cli_options to populate cli.ini
When using snap and systemd timers to run certbot renew it is useful to have the cli.ini file populated so we can define options, i.e. pre-hook, post-hook, etc.
This commit is contained in:
@@ -11,6 +11,12 @@
|
||||
when: not letsencrypt_cert.stat.exists
|
||||
with_items: "{{ certbot_create_standalone_stop_services }}"
|
||||
|
||||
- name: Add renew options to cli.ini file
|
||||
copy:
|
||||
path: /etc/letsencrypt/cli.ini
|
||||
content: {{ certbot_cli_options }}
|
||||
when: certbot_cli_options is defined
|
||||
|
||||
- name: Generate new certificate if one doesn't exist.
|
||||
command: "{{ certbot_create_command }}"
|
||||
when: not letsencrypt_cert.stat.exists
|
||||
|
||||
Reference in New Issue
Block a user