add laptop setup #268

Merged
mg merged 44 commits from laptop_mint into master 2024-12-30 20:06:25 +01:00
Showing only changes of commit 1963636a0e - Show all commits

View file

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