homeserver/roles/mgrote_cv4pve_autosnap/tasks/systemd.yml

24 lines
504 B
YAML
Raw Normal View History

---
- name: Ensure systemd services are templated
become: true
ansible.builtin.template:
src: "{{ item }}.j2"
dest: /etc/systemd/system/{{ item }}
owner: root
group: root
mode: "0644"
no_log: "{{ no_debug | default('true') }}"
notify:
- systemctl daemon-reload
loop:
- cv4pve.service
- cv4pve_mail.service
- cv4pve.timer
- name: Ensure timer is started is templated
ansible.builtin.systemd:
name: cv4pve.timer
state: started
enabled: true
...