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:
parent
1157c98ff5
commit
96a7eabbac
1 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue