fix(playbook): reset SSH connection before post-reboot tasks

The stale SSH ControlMaster socket from the installer session persists
after the VM reboots, causing the post-reboot package install to fail
with "Pseudo-terminal will not be allocated / Connection closed".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-12 02:06:58 +01:00
parent f8eaa41fc2
commit 0bd11d5463

View File

@@ -111,6 +111,11 @@
}}
changed_when: false
- name: Reset SSH connection before post-reboot tasks
when:
- post_reboot_can_connect | bool
ansible.builtin.meta: reset_connection
- name: Set final SSH credentials for post-reboot tasks
when:
- post_reboot_can_connect | bool