29 lines
649 B
YAML
29 lines
649 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:
|
||
|
- media-docker_housekeeping.automount
|
||
|
- media-docker_housekeeping.mount
|
||
|
- docker_housekeeping.service
|
||
|
- docker_housekeeping.timer
|
||
|
- docker_housekeeping_mail.service
|
||
|
|
||
|
- name: systemctl start units
|
||
|
become: true
|
||
|
ansible.builtin.systemd:
|
||
|
name: "{{ item }}"
|
||
|
state: restarted
|
||
|
enabled: true
|
||
|
with_items:
|
||
|
- docker_housekeeping.timer
|
||
|
notify: systemctl daemon-reload
|