homeserver/roles/mgrote.apcupsd/handlers/main.yml

10 lines
318 B
YAML
Raw Normal View History

2020-08-18 11:57:53 +02:00
- name: restart_apcupsd #wird aufgerufen wenn apcupsd.conf_kopieren nach aenderungen den status "changed hat"
become: yes
systemd:
name: apcupsd
state: restarted
enabled: yes
- name: apc_access_mail
shell: /usr/sbin/apcaccess | mail -s "{{ ansible_hostname }}" {{ empfaenger_mail }}