ansible-letsencrypt icon indicating copy to clipboard operation
ansible-letsencrypt copied to clipboard

Install the letsencrypt package when available

Open thefinn93 opened this issue 8 years ago • 11 comments

Installing the package is far less janky than compiling from source every time. Looks like this is available in Ubuntu Xenial and Debian Stretch

thefinn93 avatar Jan 20 '16 17:01 thefinn93

Thanks for this! Tried and works at least on 15.10 (wily) too, by downloading letsencrypt, python-letsencrypt and python-acme debs - the rest of the deps are found.

jaywink avatar Jan 20 '16 17:01 jaywink

I'd rather not download .debs targeted at other versions. If it's not in the repos, we should probably just build it as we do now.

thefinn93 avatar Jan 20 '16 17:01 thefinn93

@thefinn93 what about installing the packages on those distros that have them?

pmackay avatar May 30 '16 11:05 pmackay

@pmackay yeah, that's what the point of this issue is. "When available" i guess was my way of saying that. When it's in the package manager.

thefinn93 avatar May 30 '16 15:05 thefinn93


- name: add hub-binary for github remoting
  apt_repository: repo='ppa:certbot/certbot'

- name: update apt cache
  apt: update_cache=yes cache_valid_time=3600

- name: install certbot
  apt: name=certbot

should work recently as seen on https://github.com/certbot/certbot/issues/1706

dothebart avatar Nov 16 '16 12:11 dothebart

@dothebart does that work on Debian? I was under the impression that PPA's were sort of an Ubuntu thing.

thefinn93 avatar Nov 16 '16 16:11 thefinn93

also, looks like it doesn't detect the availability of the package so much as add a repo and hope it works

thefinn93 avatar Nov 16 '16 16:11 thefinn93

Installing with pip is not supported by certbot. The current PyPI package is broken. The certbot developers recommend to install from backports on Debian Jessie: https://github.com/certbot/certbot/issues/5015

So, it seems that installing from distribution packages whenever possible is indeed the way to go.

rfleschenberg avatar Aug 11 '17 10:08 rfleschenberg

I don't want to promise anything, but I will try to find the time to start a PR this weekend.

rfleschenberg avatar Aug 11 '17 10:08 rfleschenberg

I need this for work now, so I'm working on it. will be Debian only unfortunatly :crying_cat_face:

ArcolaJasper avatar Aug 11 '17 14:08 ArcolaJasper

PR, needs testing on non-Debian hosts: https://github.com/thefinn93/ansible-letsencrypt/pull/59

ArcolaJasper avatar Aug 11 '17 17:08 ArcolaJasper