pimvh.systemd_failmail
Requirements
- Install Ansible:
sudo apt install python3
python3 -m ensurepip --upgrade
pip3 install ansible
Required Variables
Make sure to set the following variable as shown in the defaults.
systemd_failmail_email: ""
The Ansible playbook will check if these variables are set before running.
Example Playbook
hosts:
- foo
roles:
- pimvh.systemd-failmail
Future Improvements
- Run the service as a non-root user for better isolation.
TL;DR - What Happens If You Run This
- It will add a failmail service to your host, which will notify you of any service failures.
Sources
- Information on adding a global failure dependency is from: freedesktop.org (See Example 3)
Informazioni sul progetto
Adds a simple service to a host that sends out an email when a systemd service failed
Installa
ansible-galaxy install pimvh.systemd_failmail
Licenza
gpl-3.0
Download
792
Proprietario