fix ansible-pull successful run timestamp export and some more cleanup #185

Merged
june merged 4 commits from ansible_pull_fix_timestamp_export into main 2026-11-04 17:35:22 +01:00
3 changed files with 8 additions and 2 deletions
Showing only changes of commit 96a7eabbac - Show all commits

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

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

View file

@ -4,5 +4,4 @@ After=ansible-pull.service
[Service]
Type=oneshot
# Reboot, if /var/run/reboot-required or /var/run/ansible-reboot-required exist.
ExecStart=/usr/bin/bash -c 'if [ -e /var/run/reboot-required ] || [ -e /var/run/ansible-reboot-required ]; then systemctl reboot; fi'
ExecStart=ansible-pull-reboot

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

View file

@ -34,6 +34,7 @@
become: true
loop:
- ansible-pull-successful-run-timestamp-exporter
- ansible-pull-reboot
- name: ensure ansible-pull-failure-notify script installation exists
ansible.builtin.template: