Обновить ansible/expand_ubuntu_disk_workflow.yml

This commit is contained in:
2026-05-06 20:44:51 +03:00
parent d59656fa21
commit 8670e8832c
+5 -1
View File
@@ -21,6 +21,7 @@
hosts: localhost
connection: local
gather_facts: false
become: false
tasks:
- name: Wait for SSH port on Ubuntu VM
@@ -30,12 +31,14 @@
timeout: 60
sleep: 2
- name: Stage 3 - Read current guest disk size
hosts: ubuntu_resize_group
gather_facts: false
become: true
vars:
ansible_python_interpreter: /usr/bin/python3
tasks:
- name: Get current size of /dev/sda in bytes
ansible.builtin.command: lsblk -b -dn -o SIZE /dev/sda
@@ -86,6 +89,7 @@
become: true
vars:
ansible_python_interpreter: /usr/bin/python3
root_disk: /dev/sda
root_partition_number: 3
root_partition: /dev/sda3