add absolut path for certbot
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-04-21 00:10:25 +02:00
parent 2a3ed206cb
commit 14e09868e5
4 changed files with 6 additions and 3 deletions

View File

@ -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(',') }}"

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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' }}"