Skip to content

Commit

Permalink
Merge pull request coopdevs#9 from coopdevs/feature/add_ubuntu_18.04_…
Browse files Browse the repository at this point in the history
…support

Add Ubuntu 14.04 and 18.04 support
  • Loading branch information
enricostano authored Jan 22, 2019
2 parents 3580d22 + fbd0ad9 commit 9e85774
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Simple Ansible role to install `certbot` with NGINX plugin on **Ubuntu 16.04**.

This role will:
1. Add `certbot` PPA repository
2. Install `letsencrypt` and `python-certbot-certbot-nginx` packages
3. `letsencrypt` package will add a `renew` cron job and a systemd-timer ([More info](https://certbot.eff.org/#ubuntuxenial-nginx)
2. Install `certbot` and `python-certbot-nginx` packages
3. `certbot` package will add a `renew` cron job and a systemd-timer ([More info](https://certbot.eff.org/#ubuntuxenial-nginx)
4. Generate a Let's Encrypt SSL certificate for the given `domain_name`

Role Variables
Expand Down
2 changes: 2 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ galaxy_info:
platforms:
- name: Ubuntu
versions:
- trusty
- xenial
- bionic

galaxy_tags:
- certbot
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

- name: Install certbot
package:
name: "certbot=0.26.1-1+ubuntu{{ ansible_distribution_version }}.1+certbot+2"
name: "certbot=0.28.0-1+ubuntu{{ ansible_distribution_version }}.1+certbot+4"
state: present

- name: Install certbot-nginx plugin
package:
name: "python-certbot-nginx=0.25.0-2+ubuntu{{ ansible_distribution_version }}.1+certbot+1"
name: "python-certbot-nginx=0.28.0-1+ubuntu{{ ansible_distribution_version }}.1+certbot+3"
state: present

- name: Check if certificate already exists
Expand Down

0 comments on commit 9e85774

Please sign in to comment.