woodpecker-agent: enable IPv6 on pipeline networks (the actual fix) #52

Merged
k.renner merged 1 commits from agent-woodpecker-ipv6 into master 2026-06-26 12:18:40 +00:00
2 changed files with 10 additions and 4 deletions
@@ -10,8 +10,11 @@
systemctl restart docker
changed_when: true
# Also deferred: the agent restarting itself would interrupt the very
# pipeline running this deploy. Reload the unit now, restart on a timer.
- name: Restart woodpecker-agent
systemd:
name: woodpecker-agent
state: restarted
daemon_reload: yes
ansible.builtin.command:
cmd: >-
systemd-run --on-active=20s --timer-property=AccuracySec=100ms
sh -c "systemctl daemon-reload && systemctl restart woodpecker-agent"
changed_when: true
@@ -3,3 +3,6 @@ WOODPECKER_AGENT_SECRET={{ woodpecker_grpc_secret }}
WOODPECKER_MAX_WORKFLOWS={{ woodpecker_max_workflows }}
WOODPECKER_BACKEND=docker
WOODPECKER_HOSTNAME={{ inventory_hostname }}
# Create pipeline-step networks with IPv6 so steps can reach v6-only hosts
# (pairs with the Docker daemon.json ipv6/ip6tables config).
WOODPECKER_BACKEND_DOCKER_ENABLE_IPV6=true