homeserver/friedhof/mgrote_apcupsd/handlers/main.yml
Michael Grote 7dfe80a4dc move to containerized mail relayhost (#588)
Reviewed-on: #588
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-31 11:37:50 +01:00

13 lines
386 B
YAML

---
- name: restart_apcupsd #wird aufgerufen wenn apcupsd.conf_kopieren nach aenderungen den status "changed hat"
become: true
ansible.builtin.systemd:
name: apcupsd
state: restarted
enabled: true
- name: apc_access_mail
ansible.builtin.shell:
cmd: set -o pipefail && /usr/sbin/apcaccess | mail -s "{{ ansible_hostname }}" {{ my_mail }}
executable: /bin/bash