Skip to content

Commit

Permalink
Exposed variable certbot_auto_renew_command adding finer control over…
Browse files Browse the repository at this point in the history
… the renewal command which gets executed via CRON.
  • Loading branch information
adamdyson committed Apr 20, 2020
1 parent 26a1e8e commit 495bc68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ certbot_source_repo: 'https://github.com/certbot/certbot.git'
certbot_source_version: 'master'
certbot_web_server_service_name: 'nginx'
certbot_auto_renew: yes
certbot_auto_renew_command: 'renew --quiet --no-self-upgrade --deploy-hook "{{ certbot_auto_renew_hook }}"'
certbot_auto_renew_hook: 'service {{ certbot_web_server_service_name }} reload'
certbot_auto_renew_user: '{{ ansible_user }}'
certbot_auto_renew_hour: '2'
Expand Down
2 changes: 1 addition & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
become: yes
cron:
name: 'Certbot automatic renewal'
job: '{{ certbot_script }} renew --quiet --no-self-upgrade'
job: '{{ certbot_script }} {{ certbot_auto_renew_command }}'
minute: '{{ certbot_auto_renew_minute }}'
hour: '{{ certbot_auto_renew_hour }}'
user: '{{ certbot_auto_renew_user }}'
Expand Down

0 comments on commit 495bc68

Please sign in to comment.