From b6e70b881a0c4a0e039614373d0e51531d7859a8 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Thu, 29 Aug 2019 05:58:13 +0200 Subject: [PATCH] acme: Fixed using correct home and config-home directories --- roles/acme/application/tasks/main.yml | 5 ++++- roles/acme/certificate/tasks/main.yml | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/acme/application/tasks/main.yml b/roles/acme/application/tasks/main.yml index 272e6e7..1a6a316 100644 --- a/roles/acme/application/tasks/main.yml +++ b/roles/acme/application/tasks/main.yml @@ -22,7 +22,10 @@ - name: Upgrade acme.sh become_user: "{{ acme_system_user }}" - command: ./acme.sh --upgrade + command: + ./acme.sh --upgrade + --home {{ acme_installation_directory | quote }} + --config-home {{ acme_configuration_directory | quote }} args: chdir: "{{ acme_installation_directory }}" register: acme_upgrade_results diff --git a/roles/acme/certificate/tasks/main.yml b/roles/acme/certificate/tasks/main.yml index 6957793..bad7a12 100644 --- a/roles/acme/certificate/tasks/main.yml +++ b/roles/acme/certificate/tasks/main.yml @@ -6,6 +6,8 @@ become_user: "{{ acme_system_user }}" command: >- ./acme.sh --issue + --home {{ acme_installation_directory | quote }} + --config-home {{ acme_configuration_directory | quote }} --domain "{{ domain | quote }}" --webroot "{{ nginx_validation_root_directory | quote }}" --ecc @@ -20,6 +22,8 @@ become_user: "{{ acme_system_user }}" command: >- ./acme.sh --install-cert + --home {{ acme_installation_directory | quote }} + --config-home {{ acme_configuration_directory | quote }} --domain "{{ domain | quote }}" --key-file "{{ acme_key_location | quote }}" --fullchain-file "{{ acme_certificate_location | quote }}"