From d59656fa2164a92cec0f9d77fdcf08c7bde83cf6 Mon Sep 17 00:00:00 2001 From: ogrechko Date: Wed, 6 May 2026 20:38:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20ansible/expand=5Fubuntu=5Fdisk=5Fworkflow.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/expand_ubuntu_disk_workflow.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/ansible/expand_ubuntu_disk_workflow.yml b/ansible/expand_ubuntu_disk_workflow.yml index 56b09d7..1284be2 100644 --- a/ansible/expand_ubuntu_disk_workflow.yml +++ b/ansible/expand_ubuntu_disk_workflow.yml @@ -15,16 +15,21 @@ ansible_password: "{{ ansible_password }}" ansible_become: true ansible_become_password: "{{ ansible_become_password }}" - ansible_ssh_extra_args: "-o StrictHostKeyChecking=no" + ansible_ssh_common_args: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" -- name: Stage 2 - Wait for SSH - hosts: ubuntu_resize_group +- name: Stage 2 - Wait for SSH port + hosts: localhost + connection: local gather_facts: false tasks: - - name: Wait for SSH connection - ansible.builtin.wait_for_connection: - timeout: 300 + - name: Wait for SSH port on Ubuntu VM + ansible.builtin.wait_for: + host: "{{ vm_ip }}" + port: 22 + timeout: 60 + sleep: 2 + - name: Stage 3 - Read current guest disk size hosts: ubuntu_resize_group