Support Debian Bookworm

This commit is contained in:
2024-07-13 12:38:33 +01:00
parent 757cceb0f7
commit 1cad2f065d
5 changed files with 11 additions and 9 deletions

View File

@@ -15,6 +15,9 @@ galaxy_info:
- name: Ubuntu - name: Ubuntu
versions: versions:
- jammy - jammy
- name: Debian
versions:
- bookworm
galaxy_tags: galaxy_tags:
- networking - networking
- system - system

View File

@@ -8,14 +8,19 @@
ansible.builtin.package: ansible.builtin.package:
name: "{{ certbot_extension_packages }}" name: "{{ certbot_extension_packages }}"
state: present state: present
when:
- certbot_extension_packages | length
- name: Certbot - Install certbot extensions (pypi) - name: Certbot - Install certbot extensions (pypi)
ansible.builtin.pip: ansible.builtin.pip:
name: "{{ certbot_extension_pypi_packages }}" name: "{{ certbot_extension_pypi_packages }}"
state: present state: present
when:
- certbot_extension_pypi_packages | length
- name: Certbot - Enable certbot renewal timer - name: Certbot - Enable certbot renewal timer
ansible.builtin.systemd: ansible.builtin.systemd:
name: "{{ certbot_timer_service }}" name: "{{ certbot_timer_service }}"
state: started state: started
enabled: true enabled: true
when: certbot_timer_service

3
vars/os/Debian.yaml Normal file
View File

@@ -0,0 +1,3 @@
---
certbot_packages:
- python3-certbot

View File

@@ -1,8 +1,2 @@
--- ---
certbot_packages:
- certbot
certbot_extension_packages:
- python3-certbot-dns-digitalocean
certbot_timer_service: certbot-renew.timer certbot_timer_service: certbot-renew.timer

View File

@@ -1,7 +1,4 @@
--- ---
certbot_packages:
- certbot
certbot_extension_packages: [] certbot_extension_packages: []
certbot_extension_pypi_packages: certbot_extension_pypi_packages: