Compare commits

...

1 commit

Author SHA1 Message Date
e65813f584
ansible_pull(role): add ExecPost step rebooting the hosts, if should be
Some checks failed
/ Ansible Lint (push) Failing after 49s
/ Ansible Lint (pull_request) Failing after 48s
2025-10-13 17:12:39 +02:00

View file

@ -14,3 +14,5 @@ ExecStart=/usr/local/lib/ansible_pull_venv/bin/ansible-pull \
--inventory "{{ ansible_pull__inventory }}" \ --inventory "{{ ansible_pull__inventory }}" \
"{{ 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.
ExecPost=/usr/bin/bash 'if [ -e /var/run/reboot-required ] || [ -e /var/run/ansible-reboot-required ]; then sudo systemctl reboot; fi'