From 1fd136d485e2cf7f6accb04c7154cb65e091c2bb Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 7 Apr 2016 23:44:35 +0200 Subject: [PATCH] library/roles/letsencrypt-client: Install the official letsencrypt client. No automation for now. d4science-ghn-cluster/roles/haproxy_frontend: default repository for Ubuntu. d4science-ghn-cluster/infra-gateway.yml: Install haproxy. --- letsencrypt-client/defaults/main.yml | 9 +++++++++ letsencrypt-client/tasks/main.yml | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 letsencrypt-client/defaults/main.yml create mode 100644 letsencrypt-client/tasks/main.yml diff --git a/letsencrypt-client/defaults/main.yml b/letsencrypt-client/defaults/main.yml new file mode 100644 index 00000000..73079c57 --- /dev/null +++ b/letsencrypt-client/defaults/main.yml @@ -0,0 +1,9 @@ +--- +letsencrypt_install: False +letsencrypt_git_repo: 'https://github.com/letsencrypt/letsencrypt' +letsencrypt_dest_dir: /opt +letsencrypt_update_repo: True +letsencrypt_prerequisites: + - git + - bc + diff --git a/letsencrypt-client/tasks/main.yml b/letsencrypt-client/tasks/main.yml new file mode 100644 index 00000000..d429418f --- /dev/null +++ b/letsencrypt-client/tasks/main.yml @@ -0,0 +1,14 @@ +--- +- name: Install the letsencrypt package dependencies + apt: name={{ item }} state=present + with_items: '{{ letsencrypt_prerequisites }}' + when: letsencrypt_install + tags: letsencrypt + +- name: Get the letsencrypt client + git: repo={{ letsencrypt_git_repo }} dest={{ letsencrypt_dest_dir }}/letsencrypt update={{ letsencrypt_update_repo }} + with_items: '{{ letsencrypt_prerequisites }}' + when: letsencrypt_install + tags: letsencrypt + +