Skip to content
Snippets Groups Projects
Commit e7f2ef5a authored by jurgenhaas's avatar jurgenhaas
Browse files

Install official client

parent e19e65cf
Branches
No related tags found
No related merge requests found
---
# file: roles/letsencrypt/tasks/install.yml
- name: "Checkout LetsEncrypt Sources"
git:
accept_hostkey: yes
repo: 'https://github.com/letsencrypt/letsencrypt'
dest: '/opt/letsencrypt'
- name: "Initialize LetsEncrypt"
shell: /opt/letsencrypt/letsencrypt-auto --help
---
# file: roles/letsencrypt/tasks/main.yml
cd /opt
git clone https://github.com/letsencrypt/letsencrypt
# Run once, that downloads and configures everything needed
- name: "Check LetsEncrypt Requirement"
shell: ls /opt/letsencrypt/letsencrypt-auto
register: letsencrypt_available
failed_when: false
#without sudo
/opt/letsencrypt/letsencrypt-auto --help
/opt/letsencrypt/letsencrypt-auto -d admin.new.crebifax.ca --text --email admin@paragon-es.de --agree-tos --redirect
/opt/letsencrypt/letsencrypt-auto certonly -d mon1.paragon-es.de --text --email admin@paragon-es.de --agree-tos --redirect
- include: install.yml
when: letsencrypt_available is defined and letsencrypt_available.stdout != '/opt/letsencrypt/letsencrypt-auto'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment