23 lines
497 B
YAML
23 lines
497 B
YAML
---
|
|
- 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:
|
|
name: docker_housekeeping.timer
|
|
state: restarted
|
|
enabled: true
|
|
notify: systemctl daemon-reload
|