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