This commit is contained in:
Michael Grote 2024-12-30 18:50:33 +01:00
parent 1e807478f0
commit 1963636a0e

View file

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