From 8670e8832ca17576837c781a67dbd2b49ec33ab3 Mon Sep 17 00:00:00 2001 From: ogrechko Date: Wed, 6 May 2026 20:44:51 +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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ansible/expand_ubuntu_disk_workflow.yml b/ansible/expand_ubuntu_disk_workflow.yml index 1284be2..5c30385 100644 --- a/ansible/expand_ubuntu_disk_workflow.yml +++ b/ansible/expand_ubuntu_disk_workflow.yml @@ -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