mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
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>
16 lines
386 B
YAML
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 }}"
|