docker: add housekeeping #105

Merged
mg merged 12 commits from dhc into master 2024-06-05 18:58:29 +02:00
3 changed files with 14 additions and 12 deletions
Showing only changes of commit 5ea40b6d46 - Show all commits

View file

@ -1,3 +1,3 @@
--- ---
docker_housekeeping_schedule: docker_housekeeping_schedule: "weekly"
... ...

View file

@ -4,17 +4,7 @@
ansible.builtin.systemd: ansible.builtin.systemd:
daemon_reload: true daemon_reload: true
- name: systemctl enable units - name: Start timer
become: true
ansible.builtin.systemd:
name: "{{ item }}"
enabled: true
masked: false
with_items:
- docker_housekeeping.service
- docker_housekeeping.timer
- name: systemctl start units
become: true become: true
ansible.builtin.systemd: ansible.builtin.systemd:
name: docker_housekeeping.timer name: docker_housekeeping.timer

View file

@ -20,4 +20,16 @@
mode: "0644" mode: "0644"
notify: notify:
- systemctl daemon-reload - systemctl daemon-reload
- name: Enable Units
become: true
ansible.builtin.systemd:
name: "{{ item }}"
enabled: true
masked: false
with_items:
- docker_housekeeping.service
- docker_housekeeping.timer
notify:
- Start timer
... ...