From f6eb8302c260429d264f27dba0cd806249dbd4f3 Mon Sep 17 00:00:00 2001 From: Daniel Palomar Date: Tue, 22 Oct 2024 19:35:13 +0200 Subject: [PATCH] feat: Added support for Ubuntu 24.04 --- README.md | 7 ++++++- tasks/main.yml | 9 ++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dc9c0db..e7829a0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index 5a69536..7c92cb2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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: