Merge pull request 'woodpecker-agent: defer docker restart so the agent self-deploy survives' (#51) from agent-docker-deferred-restart into master
ci/woodpecker/push/deploy-woodpecker-agent Pipeline was successful
ci/woodpecker/manual/deploy-netbird-proxy Pipeline failed

This commit was merged in pull request #51.
This commit is contained in:
2026-06-26 14:13:15 +02:00
@@ -1,8 +1,14 @@
---
# Deferred + detached: restarting Docker here would kill this very CI job's
# container (the agent deploys itself). Schedule it via a transient systemd
# timer so the playbook finishes first, then Docker restarts ~15s later and
# picks up the new daemon.json.
- name: Restart docker
ansible.builtin.systemd:
name: docker
state: restarted
ansible.builtin.command:
cmd: >-
systemd-run --on-active=15s --timer-property=AccuracySec=100ms
systemctl restart docker
changed_when: true
- name: Restart woodpecker-agent
systemd: