d
This commit is contained in:
parent
11a0845bfa
commit
5ea40b6d46
3 changed files with 14 additions and 12 deletions
|
@ -1,3 +1,3 @@
|
||||||
---
|
---
|
||||||
docker_housekeeping_schedule:
|
docker_housekeeping_schedule: "weekly"
|
||||||
...
|
...
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue