ansible-hessnet/roles/letsencrypt/tasks/install_timers.yml

28 lines
637 B
YAML
Raw Permalink Normal View History

2020-04-21 06:21:08 +00:00
---
- name: "Install certbot systemd service file"
copy:
owner: "root"
group: "root"
mode: "755"
src: "certbot-renew.service"
dest: "/etc/systemd/system/certbot-renew.service"
notify: "systemd daemon reload"
- name: "Install certbot systemd timer"
copy:
owner: "root"
group: "root"
mode: "755"
src: "certbot-renew.timer"
dest: "/etc/systemd/system/certbot-renew.timer"
notify: "systemd daemon reload"
- name: "Force systemd handlers run"
meta: "flush_handlers"
- name: "Enable certbot systemd timer"
systemd:
name: "certbot-renew.timer"
state: "started"
enabled: "true"