2024-04-14 21:40:43 +02:00
|
|
|
---
|
2024-12-30 20:06:25 +01:00
|
|
|
- name: Ensure systemd services are templated
|
|
|
|
become: true
|
2024-04-14 21:40:43 +02:00
|
|
|
ansible.builtin.template:
|
2024-12-30 20:06:25 +01:00
|
|
|
src: "{{ item }}.j2"
|
|
|
|
dest: /etc/systemd/system/{{ item }}
|
2024-04-14 21:40:43 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: "0644"
|
2024-11-10 15:56:59 +01:00
|
|
|
no_log: "{{ no_debug | default('true') }}"
|
2024-04-14 21:40:43 +02:00
|
|
|
notify:
|
|
|
|
- systemctl daemon-reload
|
2024-12-30 20:06:25 +01:00
|
|
|
loop:
|
|
|
|
- cv4pve.service
|
|
|
|
- cv4pve_mail.service
|
|
|
|
- cv4pve.timer
|
2024-04-14 21:40:43 +02:00
|
|
|
|
|
|
|
- name: Ensure timer is started is templated
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: cv4pve.timer
|
|
|
|
state: started
|
|
|
|
enabled: true
|
|
|
|
...
|