thinkcenter-audio: add dpkg/apt self-heal step (prevents half-configured-package cascade failures)

This commit is contained in:
Samuel James 2026-09-03 16:04:58 +00:00
parent f839457b4b
commit 57f05bcb02

View File

@ -94,6 +94,14 @@
that: inventory_hostname == 'thinkcenter'
fail_msg: "Refusing to run — this play is scoped to thinkcenter only."
- name: "[selfheal] Repair any half-configured dpkg/apt state (prevents cascade failures)"
ansible.builtin.shell: |
dpkg --configure -a || true
apt-get -y -f install || true
register: dpkg_selfheal
changed_when: "'Setting up' in (dpkg_selfheal.stdout | default(''))"
failed_when: false
- name: "[safety] Assert audio_user resolved from Infisical"
ansible.builtin.assert:
that: