homeserver/roles/mgrote_cv4pve_autosnap/tasks/systemd.yml
Michael Grote 4972eeef96
All checks were successful
ansible-lint / gitleaks (push) Successful in 5s
ansible-lint / Ansible Lint (push) Successful in 29s
add laptop setup (#268)
Reviewed-on: #268
2024-12-30 20:06:25 +01:00

23 lines
504 B
YAML

---
- 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
...