Skip to content

Commit fff9529

Browse files
authored
Merge pull request #35 from coopdevs/fix/certbot_ubuntu24
Feat: Added support for Ubuntu 24.04
2 parents 11d0e13 + f6eb830 commit fff9529

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
Certbot NGINX [![Build Status](https://travis-ci.org/coopdevs/certbot_nginx.svg?branch=master)](https://travis-ci.org/coopdevs/certbot_nginx)
22
=========
33

4-
Simple Ansible role to install `certbot` with NGINX plugin on **Ubuntu 16.04** and **Ubuntu 18.04**.
4+
Simple Ansible role to install `certbot` with NGINX plugin on:
5+
* **Ubuntu 16.04**
6+
* **Ubuntu 18.04**.
7+
* **Ubuntu 20.04**.
8+
* **Ubuntu 22.04**.
9+
* **Ubuntu 24.04**.
510

611
This role will:
712
1. Add `certbot` PPA repository

tasks/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
---
2+
- name: Set Certbot package name and versions (Ubuntu >= 24.04)
3+
set_fact:
4+
certbot_version: 2.9.0-1
5+
certbot_nginx_version: 2.9.0-1
6+
certbot_nginx_name: python3-certbot-nginx
7+
when: ansible_distribution_version >= "24.04"
8+
29
- name: Set Certbot package name and versions (Ubuntu >= 22.04)
310
set_fact:
411
certbot_version: 1.21.0-1build1
512
certbot_nginx_version: 1.21.0-1
613
certbot_nginx_name: python3-certbot-nginx
7-
when: ansible_distribution_version >= "22.04"
14+
when: ansible_distribution_version >= "22.04" and ansible_distribution_version < "24.04"
815

916
- name: Set Certbot package name and versions (Ubuntu >= 20.04)
1017
set_fact:

0 commit comments

Comments
 (0)