# ################################################ ### Managed by someone's ansible provisioner ### ################################################ # Part of: https://git.somenet.org/root/pub/somesible.git # 2017-2024 by someone <someone@somenet.org> # [Unit] Description=Ansible autoselfheal ConditionPathIsDirectory=/var/ansible/ansible OnFailure=unit-status-mail@%n.service [Service] Type=oneshot User=ansible Group=root TimeoutStartSec=2h WorkingDirectory=/var/ansible/ansible ExecStart=/bin/bash -c 'set -o pipefail; sleep 120; ./run_somesible.sh -D -e ignore_online_errors=True 2>&1 | tee -a /var/log/ansible_autoselfheal.log; exit $?'