Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
Certbot NGINX [![Build Status](https://travis-ci.org/coopdevs/certbot_nginx.svg?branch=master)](https://travis-ci.org/coopdevs/certbot_nginx)
=========

Simple Ansible role to install `certbot` with NGINX plugin on **Ubuntu 16.04** and **Ubuntu 18.04**.
Simple Ansible role to install `certbot` with NGINX plugin on:
* **Ubuntu 16.04**
* **Ubuntu 18.04**.
* **Ubuntu 20.04**.
* **Ubuntu 22.04**.
* **Ubuntu 24.04**.

This role will:
1. Add `certbot` PPA repository
Expand Down
9 changes: 8 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
---
- name: Set Certbot package name and versions (Ubuntu >= 24.04)
set_fact:
certbot_version: 2.9.0-1
certbot_nginx_version: 2.9.0-1
certbot_nginx_name: python3-certbot-nginx
when: ansible_distribution_version >= "24.04"

- name: Set Certbot package name and versions (Ubuntu >= 22.04)
set_fact:
certbot_version: 1.21.0-1build1
certbot_nginx_version: 1.21.0-1
certbot_nginx_name: python3-certbot-nginx
when: ansible_distribution_version >= "22.04"
when: ansible_distribution_version >= "22.04" and ansible_distribution_version < "24.04"

- name: Set Certbot package name and versions (Ubuntu >= 20.04)
set_fact:
Expand Down