2024-06-05 18:46:52 +02:00
|
|
|
---
|
|
|
|
- name: systemctl daemon-reload
|
|
|
|
become: true
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
daemon_reload: true
|
|
|
|
|
|
|
|
- name: systemctl enable units
|
|
|
|
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
|
|
|
|
ansible.builtin.systemd:
|
2024-06-05 18:51:11 +02:00
|
|
|
name: docker_housekeeping.timer
|
2024-06-05 18:46:52 +02:00
|
|
|
state: restarted
|
|
|
|
enabled: true
|
|
|
|
notify: systemctl daemon-reload
|