New ansible role papanito.systemd_notifiers

Posted July 18, 2021 by Adrian Wyssmann ‐ 1 min read

Based on my last blog post, I've created a new ansible role to setup a systemd notification service for failing systemd services

Checkout Notifications for failing Systemd services for the idea behind this role.

When systemd services fail you usually don’t really notice it unless it’s a critical service. However there may be situations where it would be nice that you are mare aware of failing services. This role will setup systemd jobs of type oneshot which you can the use in your critical services, by using them in the [OnFailure][OnFailure]:

A space-separated list of one or more units that are activated when this unit enters the “failed” state.

I hope this is also useful for you.