add absolut path for certbot
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2a3ed206cb
commit
14e09868e5
@ -1,5 +1,5 @@
|
||||
---
|
||||
# @var certbot_packages_extra: Extra packages to install with pip (e.g. DNS plugins)
|
||||
# @var certbot_packages_extra:description: Extra packages to install with pip (e.g. DNS plugins).
|
||||
certbot_packages_extra: []
|
||||
|
||||
certbot_user: root
|
||||
@ -23,6 +23,7 @@ certbot_domains:
|
||||
# @end
|
||||
certbot_credentials: []
|
||||
|
||||
# @var certbot_bin:description: Location of the certbot binary. Default is to `~/.local/.bin/certbot`.
|
||||
certbot_command_arguments:
|
||||
- "certonly"
|
||||
- "-n -d {{ certbot_domains | join(',') }}"
|
||||
|
@ -42,7 +42,7 @@
|
||||
hour: "{{ certbot_cron_hour }}"
|
||||
user: "{{ certbot_cron_user | default(certbot_user) }}"
|
||||
job: >
|
||||
certbot
|
||||
{{ certbot_bin | default(__certbot_bin) }}
|
||||
--config-dir {{ certbot_config_dir }}
|
||||
--work-dir {{ certbot_work_dir }}
|
||||
--logs-dir {{ certbot_log_dir }}
|
||||
|
@ -3,7 +3,7 @@
|
||||
block:
|
||||
- name: Initial run of certbot
|
||||
command: >
|
||||
certbot
|
||||
{{ certbot_bin | default(__certbot_bin) }}
|
||||
--config-dir {{ certbot_config_dir }}
|
||||
--work-dir {{ certbot_work_dir }}
|
||||
--logs-dir {{ certbot_log_dir }}
|
||||
|
@ -6,3 +6,5 @@ __certbot_environment:
|
||||
- { name: "{{ certbot_work_dir }}", mode: "0755" }
|
||||
- { name: "{{ certbot_config_dir }}", mode: "0755" }
|
||||
- { name: "{{ certbot_log_dir }}", mode: "0700" }
|
||||
|
||||
__certbot_bin: "{{ '/root/.local/bin/certbot' if certbot_user == 'root' else '/home/' + certbot_user + '/.local/bin/certbot' }}"
|
||||
|
Loading…
Reference in New Issue
Block a user