26 lines
554 B
YAML
26 lines
554 B
YAML
---
|
|
- name: systemctl daemon-reload
|
|
become: yes
|
|
ansible.builtin.systemd:
|
|
daemon_reload: yes
|
|
|
|
- name: systemctl enable units
|
|
become: yes
|
|
ansible.builtin.systemd:
|
|
name: "{{ item }}"
|
|
enabled: yes
|
|
masked: no
|
|
with_items:
|
|
- sanoid.service
|
|
- sanoid_mail.service
|
|
- sanoid.timer
|
|
|
|
- name: systemctl start units
|
|
become: yes
|
|
ansible.builtin.systemd:
|
|
name: "{{ item }}"
|
|
state: restarted
|
|
enabled: yes
|
|
with_items:
|
|
- sanoid.timer
|
|
notify: systemctl daemon-reload
|