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