Files
computer-playbook/tasks/utils/apt/ready.yml
kevinveenbirkenbachandClaude Opus 4.8 65240096cf fix(bootstrap): gate apt-daily neutralize on a running systemd
The guide job runs the README command in a plain docker-run container
where systemd is not PID 1, so stopping apt-daily died with "Service is
in unknown state". Extract the neutralize block into
tasks/utils/apt/neutralize.yml behind the sd_booted check
(/run/systemd/system); ready.yml keeps the container gate on the
include and always waits for the dpkg lock. A README documents the gate
chain with a mermaid schema.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-18 19:53:20 +02:00

16 lines
386 B
YAML

---
- name: "🧯 Neutralize apt-daily in the ephemeral deploy container"
ansible.builtin.include_tasks: neutralize.yml
when: DOCKER_IN_CONTAINER | bool
- name: "⏳ Wait for the dpkg lock"
ansible.builtin.command:
argv:
- apt-get
- -q
- -o
- DPkg::Lock::Timeout=600
- check
changed_when: false
timeout: "{{ lookup('timeout', 660) | int }}"