Обновить ansible/expand_ubuntu_disk_workflow.yml
This commit is contained in:
@@ -15,16 +15,21 @@
|
|||||||
ansible_password: "{{ ansible_password }}"
|
ansible_password: "{{ ansible_password }}"
|
||||||
ansible_become: true
|
ansible_become: true
|
||||||
ansible_become_password: "{{ ansible_become_password }}"
|
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
|
- name: Stage 2 - Wait for SSH port
|
||||||
hosts: ubuntu_resize_group
|
hosts: localhost
|
||||||
|
connection: local
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Wait for SSH connection
|
- name: Wait for SSH port on Ubuntu VM
|
||||||
ansible.builtin.wait_for_connection:
|
ansible.builtin.wait_for:
|
||||||
timeout: 300
|
host: "{{ vm_ip }}"
|
||||||
|
port: 22
|
||||||
|
timeout: 60
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user