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 become: true
ansible.builtin.template: ansible.builtin.template:
src: docker_housekeeping.service.j2 src: "{{ item }}.j2"
dest: /etc/systemd/system/docker_housekeeping.service dest: /etc/systemd/system/{{ item }}
owner: root owner: root
group: root group: root
mode: "0644" mode: "0644"
notify: notify:
- systemctl daemon-reload - systemctl daemon-reload
loop:
- name: Setup timer - docker_housekeeping.service
become: true - docker_housekeeping.timer
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
- name: Enable Units - name: Enable Units
become: true become: true

View file

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

View file

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

View file

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