ansible-pull(role): move ansible-pull reboot logic to script as well

Do this to unify the way these helper scripts get deployed.
This commit is contained in:
June 2026-11-04 17:15:48 +01:00
commit 96a7eabbac
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Reboot, if /var/run/reboot-required or /var/run/ansible-reboot-required exist.
if [ -e /var/run/reboot-required ] || [ -e /var/run/ansible-reboot-required ]; then
systemctl reboot
fi