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
|
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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue