infrastructure/roles/lego/tasks/systemd.yml

25 lines
557 B
YAML
Raw Normal View History

2024-09-26 22:02:36 +00:00
---
- name: Copy the system service
ansible.builtin.template:
src: lego@.service.j2
dest: /etc/systemd/system/lego@.service
mode: "0644"
become: true
- name: Copy the system timer
ansible.builtin.copy:
src: lego@.timer
dest: /etc/systemd/system/lego@.timer
mode: "0644"
become: true
- name: Enable the system timers
ansible.builtin.systemd_service:
name: lego@{{ item }}.timer
state: started
enabled: true
daemon_reload: true
loop:
- msrg.cc
- db.serguzim.me
2024-09-28 19:24:11 +00:00
- auth.serguzim.me
2024-09-26 22:02:36 +00:00
become: true