Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pimvh/systemd_failmail
Ansible role to add a failmail systemd service to a host
https://github.com/pimvh/systemd_failmail
ansible email molecule-tested monitoring role systemd
Last synced: about 1 month ago
JSON representation
Ansible role to add a failmail systemd service to a host
- Host: GitHub
- URL: https://github.com/pimvh/systemd_failmail
- Owner: pimvh
- License: gpl-3.0
- Created: 2022-11-16T13:22:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-20T18:51:06.000Z (7 months ago)
- Last Synced: 2024-05-20T22:10:50.519Z (7 months ago)
- Topics: ansible, email, molecule-tested, monitoring, role, systemd
- Language: Python
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Molecule test](https://github.com/pimvh/systemd_failmail/actions/workflows/test.yaml/badge.svg)
# Requirements1. Ansible installed:
```
sudo apt install python3
python3 -m ensurepip --upgrade
pip3 install ansible
```## Required variables
Review the variables as shown in defaults.
```
systemd_failmail_email: ""
```The ansible playbook will validate whether the variables exist that you defined before running.
# Example playbook
```
hosts:
- foo
roles:
- pimvh.systemd-failmail```
# Future Improvements
- Isolate service, running as non-root
# TLDR - What will happen if I run this
- Add a failmail service to your host. It will automatically be applied to all other services, to notify you of failures.
# Sources
- How to add global on failure dependency was taken from: [freedesktop.org](https://www.freedesktop.org/software/systemd/man/systemd.unit.html) (Example 3)