homeserver/roles/mgrote_cv4pve_autosnap/handlers/main.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

26 lines
517 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:
- cv4pve.service
- cv4pve_mail.service
- cv4pve.timer
- name: systemctl start units
become: true
ansible.builtin.systemd:
name: "{{ item }}"
state: restarted
enabled: true
with_items:
- cv4pve.timer
notify: systemctl daemon-reload