From 937a372799a4e11864250d73077549cff9e8c03c Mon Sep 17 00:00:00 2001 From: Jordan BELAY Date: Mon, 14 Nov 2022 14:22:40 +0100 Subject: [PATCH] Add source excutable variable name for source installation --- defaults/main.yml | 2 +- tasks/install-from-source.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index bba711a..d5676f9 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -9,7 +9,6 @@ certbot_auto_renew_options: "--quiet --no-self-upgrade" certbot_testmode: false certbot_hsts: false - # Parameters used when creating new Certbot certs. certbot_create_if_missing: false certbot_create_method: standalone @@ -58,3 +57,4 @@ certbot_keep_updated: true # Where to put Certbot when installing from source. certbot_dir: /opt/certbot +certbot_source_executable_name: "certbot-auto" diff --git a/tasks/install-from-source.yml b/tasks/install-from-source.yml index daee685..786ba98 100644 --- a/tasks/install-from-source.yml +++ b/tasks/install-from-source.yml @@ -9,9 +9,9 @@ - name: Set Certbot script variable. set_fact: - certbot_script: "{{ certbot_dir }}/certbot-auto" + certbot_script: "{{ certbot_dir }}/{{ certbot_source_executable_name }}" -- name: Ensure certbot-auto is executable. +- name: Ensure certbot is executable. file: path: "{{ certbot_script }}" mode: 0755