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.
This commit is contained in:
Andrea Dell'Amico 2016-04-07 23:44:35 +02:00
parent 2cd71c9e10
commit 1fd136d485
2 changed files with 23 additions and 0 deletions

View File

@ -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

View File

@ -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