2023-10-25 22:26:17 +02:00
|
|
|
---
|
|
|
|
- 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
|
2023-10-31 11:37:50 +01:00
|
|
|
ansible.builtin.shell: /usr/sbin/apcaccess | mail -s "{{ ansible_hostname }}" {{ my_mail }}
|