File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ letsencrypt:
66 pkgs :
77 - python3-certbot-apache
88 service : certbot.timer
9+ # Only used for the pkg install method (use_package: true), internal var
10+ _cli_path : /usr/bin/certbot
911 # Only used for the git install method (use_package: false)
1012 cli_install_dir : /opt/letsencrypt
1113 # Only used for the git install method (use_package: false). If you want to
Original file line number Diff line number Diff line change 55
66{% if letsencrypt.use_package % }
77 # Renew checks if the cert exists and needs to be renewed
8- {% set check_cert_cmd = ' /usr/bin/certbot renew --dry-run --no-random-sleep-on-renew --cert-name' % }
9- {% set renew_cert_cmd = ' /usr/bin/certbot renew' % }
8+ {% set check_cert_cmd = letsencrypt._cli_path ~ ' renew --dry-run --no-random-sleep-on-renew --cert-name' % }
9+ {% set renew_cert_cmd = letsencrypt._cli_path ~ ' renew' % }
1010 {% set old_check_cert_cmd_state = ' absent' % }
1111 {% set old_renew_cert_cmd_state = ' absent' % }
1212 {% set old_cron_state = ' absent' % }
13- {% set create_cert_cmd = ' /usr/bin/certbot ' % }
13+ {% set create_cert_cmd = letsencrypt._cli_path % }
1414
1515{% else % }
1616 {% set check_cert_cmd = ' /usr/local/bin/check_letsencrypt_cert.sh' % }
Original file line number Diff line number Diff line change 33---
44RedHat :
55 service : certbot-renew.timer
6+ FreeBSD :
7+ # Only used for the pkg install method (use_package: true), internal var
8+ _cli_path : /usr/local/bin/certbot
You can’t perform that action at this time.
0 commit comments