dd
This commit is contained in:
parent
f7d5f7533e
commit
1e807478f0
4 changed files with 9 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue