Compare commits

..

1 commit

Author SHA1 Message Date
a48644701b
ansible_pull(role): add ExecStartPost step rebooting the hosts, if nec.
Some checks failed
/ Ansible Lint (push) Failing after 47s
/ Ansible Lint (pull_request) Failing after 47s
Add ExecStartPost step rebooting the hosts, if necessary.
2025-10-13 17:17:26 +02:00

View file

@ -15,4 +15,4 @@ ExecStart=/usr/local/lib/ansible_pull_venv/bin/ansible-pull \
"{{ ansible_pull__playbook }}" "{{ ansible_pull__playbook }}"
User={{ ansible_pull__user }} User={{ ansible_pull__user }}
# Reboot, if /var/run/reboot-required or /var/run/ansible-reboot-required exist. # Reboot, if /var/run/reboot-required or /var/run/ansible-reboot-required exist.
ExecStartPost=/usr/bin/bash -c 'if [ -e /var/run/reboot-required ] || [ -e /var/run/ansible-reboot-required ]; then sudo systemctl reboot; fi' ExecStartPost=/usr/bin/bash 'if [ -e /var/run/reboot-required ] || [ -e /var/run/ansible-reboot-required ]; then sudo systemctl reboot; fi'