mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-13 22:26:49 +00:00
sys-svc-docker role as a post-restart validation handler. This change moves the inner-container DNS validation out of the CI test suite and into the Docker service lifecycle itself, ensuring that DNS is verified exactly where it matters: inside the Docker-in-Docker daemon. Key changes: - Add roles/sys-svc-docker/files/test-dns.sh: - Runs inside the DinD container - Waits for dockerd readiness - Executes a BusyBox test container with explicit --dns - Verifies DOMAIN and subdomain resolve to the expected IP - Fails hard if DNS is broken - Register DNS self-test as a docker restart handler: - Runs once per deployment - Only executed when DOCKER_IN_CONTAINER and MODE_DEBUG are enabled - Uses ansible.builtin.script with role_path for correct resolution - Remove inner Docker DNS test from scripts/tests/dns.sh: - CI test suite now only validates host → CoreDNS → outer container chain - DinD DNS validation is now part of the Docker service health lifecycle This ensures that: - DNS is validated after every Docker restart - DinD networking failures are detected immediately - CI and production share the same DNS validation logic - Docker-in-Docker DNS becomes a first-class health invariant https://chatgpt.com/share/696a3dda-5c6c-800f-8a16-47c0c604e1e3