mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
- introduces a variable certbot_from_git - adds install from package tasks - makes a variable called certbot_script available (to handle certbot vs certbot-auto naming) - fixes #18
18 lines
416 B
YAML
18 lines
416 B
YAML
---
|
|
- name: Clone Certbot into configured directory.
|
|
git:
|
|
repo: "{{ certbot_repo }}"
|
|
dest: "{{ certbot_dir }}"
|
|
version: "{{ certbot_version }}"
|
|
update: "{{ certbot_keep_updated }}"
|
|
force: yes
|
|
|
|
- name: Set Certbot script variable
|
|
set_fact:
|
|
certbot_script: "{{ certbot_dir }}/certbot-auto"
|
|
|
|
- name: Ensure certbot-auto is executable.
|
|
file:
|
|
path: "{{ certbot_script }}"
|
|
mode: 0755
|