Обновить ansible/expand_ubuntu_disk_workflow.yml
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
hosts: localhost
|
hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
become: false
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Wait for SSH port on Ubuntu VM
|
- name: Wait for SSH port on Ubuntu VM
|
||||||
@@ -30,12 +31,14 @@
|
|||||||
timeout: 60
|
timeout: 60
|
||||||
sleep: 2
|
sleep: 2
|
||||||
|
|
||||||
|
|
||||||
- name: Stage 3 - Read current guest disk size
|
- name: Stage 3 - Read current guest disk size
|
||||||
hosts: ubuntu_resize_group
|
hosts: ubuntu_resize_group
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
vars:
|
||||||
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Get current size of /dev/sda in bytes
|
- name: Get current size of /dev/sda in bytes
|
||||||
ansible.builtin.command: lsblk -b -dn -o SIZE /dev/sda
|
ansible.builtin.command: lsblk -b -dn -o SIZE /dev/sda
|
||||||
@@ -86,6 +89,7 @@
|
|||||||
become: true
|
become: true
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
root_disk: /dev/sda
|
root_disk: /dev/sda
|
||||||
root_partition_number: 3
|
root_partition_number: 3
|
||||||
root_partition: /dev/sda3
|
root_partition: /dev/sda3
|
||||||
|
|||||||
Reference in New Issue
Block a user