This commit is contained in:
Michael Grote 2024-12-30 18:49:38 +01:00
parent f7d5f7533e
commit 1e807478f0
4 changed files with 9 additions and 18 deletions

View file

@ -1,26 +1,17 @@
---
- name: Setup docker housekeeping tasks
- name: Ensure systemd services are templated
become: true
ansible.builtin.template:
src: docker_housekeeping.service.j2
dest: /etc/systemd/system/docker_housekeeping.service
src: "{{ item }}.j2"
dest: /etc/systemd/system/{{ item }}
owner: root
group: root
mode: "0644"
notify:
- systemctl daemon-reload
- name: Setup timer
become: true
ansible.builtin.template:
src: docker_housekeeping.timer.j2
dest: /etc/systemd/system/docker_housekeeping.timer
owner: root
group: root
mode: "0644"
notify:
- systemctl daemon-reload
- Start timer
loop:
- docker_housekeeping.service
- docker_housekeeping.timer
- name: Enable Units
become: true

View file

@ -34,7 +34,7 @@
- rsync_mirror
- rsync_mirror_log
- name: Ensure services are present
- name: Ensure systemd services are templated
become: true
ansible.builtin.template:
src: "{{ item }}.j2"

View file

@ -14,7 +14,7 @@
group: root
mode: "0754"
- name: Ensure services are present
- name: Ensure systemd services are templated
become: true
ansible.builtin.template:
src: "{{ item }}.j2"

View file

@ -48,7 +48,7 @@
- systemctl daemon-reload
when: ytdl_enable_podcast_download
- name: Ensure services are present
- name: Ensure systemd services are templated
become: true
ansible.builtin.template:
src: "{{ item }}.j2"