homeserver/roles/mgrote_docker_housekeeping/handlers/main.yml
Michael Grote d1c18d270a
All checks were successful
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline was successful
docker: add housekeeping (#105)
Reviewed-on: #105
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-06-05 18:58:28 +02:00

14 lines
296 B
YAML

---
- name: systemctl daemon-reload
become: true
ansible.builtin.systemd:
daemon_reload: true
notify: Start timer
- name: Start timer
become: true
ansible.builtin.systemd:
name: docker_housekeeping.timer
state: restarted
enabled: true
notify: systemctl daemon-reload