diff options
-rw-r--r-- | TODO.txt | 1 | ||||
-rw-r--r-- | roles/certbot/tasks/main.yml | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -48,7 +48,6 @@ LATER * Install fail2ban. * Set correct hostname for each host. -* Do `systemctl daemon-reload` on unit updates? DOTFILES diff --git a/roles/certbot/tasks/main.yml b/roles/certbot/tasks/main.yml index bef7fa6..2db3ffc 100644 --- a/roles/certbot/tasks/main.yml +++ b/roles/certbot/tasks/main.yml @@ -36,7 +36,11 @@ mode: u+rw,g+r,o+r - name: Enable certbot systemd timer - ansible.builtin.service: + # `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 enabled: yes state: started + daemon_reload: true |