homeserver/roles/mgrote_docker_housekeeping/tasks/main.yml
Michael Grote 0b277bf56a
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 44s
ansible-lint / gitleaks (push) Successful in 4s
docker housekeeping: add buildx (#180)
Reviewed-on: https://git.mgrote.net///mg/homeserver/pulls/180
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-09-16 16:42:46 +02:00

37 lines
806 B
YAML

---
- name: Setup docker housekeeping tasks
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
- 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
- name: Enable Units
become: true
ansible.builtin.systemd_service:
name: "{{ item }}"
enabled: true
masked: false
daemon_reload: true
with_items:
- docker_housekeeping.service
- docker_housekeeping.timer
notify:
- Start timer
...