Skip to content

Commit

Permalink
Merge pull request #35 from coopdevs/fix/certbot_ubuntu24
Browse files Browse the repository at this point in the history
Feat: Added support for Ubuntu 24.04
  • Loading branch information
danypr92 authored Dec 12, 2024
2 parents 11d0e13 + f6eb830 commit fff9529
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
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

0 comments on commit fff9529

Please sign in to comment.