Replace wait_for with wait_for_connection

The "Wait for provisioned nodes to boot" tasks in cli playbooks
should use the wait_for_connection plugin instead of the wait_for
plugin.

ansible.builtin.wait_for_connection
 : Waits until remote system is reachable/usable

Change-Id: Ib53852ed235a0965f9bf2be7c957f7fca141462d
This commit is contained in:
Harald Jensås 2022-02-08 19:21:47 +01:00
parent d718354c1e
commit b4e2352989
3 changed files with 3 additions and 15 deletions

View File

@ -28,13 +28,9 @@
/var=100%
pre_tasks:
- name: Wait for provisioned nodes to boot
wait_for:
wait_for_connection:
timeout: 600
port: 22
host: '{{ ansible_host }}'
search_regex: OpenSSH
delay: 10
msg: Timeout waiting for provisioned nodes to become available
connection: local
tasks:

View File

@ -26,13 +26,9 @@
tuned_isolated_cores: ''
pre_tasks:
- name: Wait for provisioned nodes to boot
wait_for:
wait_for_connection:
timeout: 600
port: 22
host: '{{ ansible_host }}'
search_regex: OpenSSH
delay: 10
msg: Timeout waiting for provisioned nodes to become available
connection: local
tasks:
- name: Kernel args block

View File

@ -20,13 +20,9 @@
gather_facts: false
pre_tasks:
- name: Wait for provisioned nodes to boot
wait_for:
wait_for_connection:
timeout: 600
port: 22
host: '{{ ansible_host }}'
search_regex: OpenSSH
delay: 10
msg: Timeout waiting for provisioned nodes to become available
connection: local
roles:
- role: tripleo_network_config