homeserver/roles/mgrote.cv4pve-autosnap/handlers/main.yml
mg 17f0ca874e cv4pve auf systemd umgestellt (#344)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#344
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2022-03-28 14:48:31 +02:00

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