2022-04-01 17:57:20 +02:00
|
|
|
---
|
|
|
|
- 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:
|
2022-04-01 17:58:31 +02:00
|
|
|
- sanoid.service
|
|
|
|
- sanoid_mail.service
|
|
|
|
- sanoid.timer
|
2022-04-01 17:57:20 +02:00
|
|
|
|
|
|
|
- name: systemctl start units
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: restarted
|
|
|
|
enabled: yes
|
|
|
|
with_items:
|
2022-04-01 17:58:31 +02:00
|
|
|
- sanoid.timer
|
2022-04-01 17:57:20 +02:00
|
|
|
notify: systemctl daemon-reload
|