From d22e2491e516845f7810556a80e396e56daaa613 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sat, 21 Mar 2026 19:54:04 +0000 Subject: Remove custom certbot units There is certbot-renew.timer file that comes out of the box. No need to maintain own copy. --- roles/certbot/tasks/main.yml | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'roles/certbot/tasks') diff --git a/roles/certbot/tasks/main.yml b/roles/certbot/tasks/main.yml index 25cb320..4169d60 100644 --- a/roles/certbot/tasks/main.yml +++ b/roles/certbot/tasks/main.yml @@ -19,28 +19,9 @@ - /etc/letsencrypt/renewal-hooks/post - /etc/letsencrypt/renewal-hooks/pre -- name: Configure certbot systemd service - ansible.builtin.copy: - src: files/certbot.service - dest: /usr/lib/systemd/system - owner: root - group: root - mode: u+rw,g+r,o+r - -- name: Configure certbot systemd timer - ansible.builtin.copy: - src: files/certbot.timer - dest: /usr/lib/systemd/system - owner: root - group: root - mode: u+rw,g+r,o+r - - name: Enable certbot systemd timer - # `ansible.builtin.systemd_service` used here intentionally instead of - # `ansible.builtin.service` to issue `systemctl daemon-reload` in case of - # changes in Ansible managed unit file. - ansible.builtin.systemd_service: - name: certbot.timer + ansible.builtin.service: + name: certbot-renew.timer enabled: true state: started daemon_reload: true -- cgit v1.3