Notification in case of ansible-pull failure
In case there is a problem with the ansible configuration (e.g. syntax error), the ansible-pull service will fail. It may be nice to let the service send an e-mail in case of failure.
Possible solution: Add a ExecStopPost command to the ansible-pull service file that checks the EXIT_CODE and sends a mail. Alternatively use OnFailure to execute a different service file.
https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStopPost= https://www.freedesktop.org/software/systemd/man/systemd.exec.html#%24EXIT_CODE https://serverfault.com/a/924434