24 lines
534 B
YAML
24 lines
534 B
YAML
|
---
|
||
|
- 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
|
||
|
become: true
|