Skip to content

Commit f05ecfd

Browse files
authored
Merge pull request #15 from elan-ev/fixed-certificate-renewal-on-debian
Fixed certificate renewal on Debian based systems
2 parents 639b56d + 134cb5a commit f05ecfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
- name: Enable certbot
44
ansible.builtin.systemd:
5-
name: certbot-renew.timer
5+
name: "{{ 'certbot-renew.timer' if ansible_os_family == 'RedHat' else 'certbot.timer' }}"
66
enabled: true
77
daemon_reload: true

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
- name: Start certbot service
3333
ansible.builtin.service:
34-
name: certbot-renew.timer
34+
name: "{{ 'certbot-renew.timer' if ansible_os_family == 'RedHat' else 'certbot.timer' }}"
3535
state: started
3636
enabled: true
3737

0 commit comments

Comments
 (0)