homeserver/roles/mgrote_docker_housekeeping/tasks/main.yml

24 lines
525 B
YAML
Raw Normal View History

2024-06-05 18:44:57 +02:00
---
2024-06-05 18:51:11 +02:00
- name: Setup docker housekeeping tasks
2024-06-05 18:46:52 +02:00
become: true
ansible.builtin.template:
src: docker_housekeeping.service.j2
dest: /etc/systemd/system/docker_housekeeping.service
owner: root
group: root
mode: "0644"
notify:
- systemctl daemon-reload
2024-06-05 18:44:57 +02:00
2024-06-05 18:51:11 +02:00
- name: Setup timer
2024-06-05 18:46:52 +02:00
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
2024-06-05 18:44:57 +02:00
...