From 65071dd9921b992dce3b2a206f1446dd3bac370b Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Sun, 10 Jul 2016 22:21:19 -0500 Subject: [PATCH] Fixes #5: Ensure certbot-auto is executable. --- README.md | 12 ++++++++++-- tasks/main.yml | 5 +++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c2c4a70..45f241c 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,19 @@ Installs Certbot (for Let's Encrypt) for RHEL/CentOS or Debian/Ubuntu. ## Requirements -Let's Encrypt requires `git` to be installed. You can install using the `geerlingguy.git` role. +Certbot requires Git to be installed. You can install Git using the `geerlingguy.git` role. ## Role Variables -None. + certbot_repo: https://github.com/certbot/certbot.git + certbot_version: master + certbot_keep_updated: yes + +Certbot code repository options. This role clones the agent from the configured repo, then makes the `certbot-auto` script executable. + + certbot_dir: /opt/certbot + +The directory inside which Certbot will be cloned. ## Dependencies diff --git a/tasks/main.yml b/tasks/main.yml index b04168d..5ff5548 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,3 +5,8 @@ dest: "{{ certbot_dir }}" version: "{{ certbot_version }}" update: "{{ certbot_keep_updated }}" + +- name: Ensure certbot-auto is executable. + file: + path: "{{ certbot_dir }}/certbot-auto" + mode: 0755