2017-03-01 20:00:49 +01:00
|
|
|
- name: Test normal connection to target node
|
|
|
|
wait_for_connection:
|
|
|
|
connect_timeout: 5
|
|
|
|
sleep: 1
|
|
|
|
timeout: 10
|
2018-08-30 15:40:36 +02:00
|
|
|
|
2020-02-26 02:57:49 +01:00
|
|
|
- name: Test normal connection to target node with delay
|
|
|
|
wait_for_connection:
|
|
|
|
connect_timeout: 5
|
|
|
|
sleep: 1
|
|
|
|
timeout: 10
|
|
|
|
delay: 3
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- name: Verify delay was honored
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- result.elapsed >= 3
|
|
|
|
|
2018-08-30 15:40:36 +02:00
|
|
|
- name: Use invalid parameter
|
|
|
|
wait_for_connection:
|
|
|
|
foo: bar
|
|
|
|
ignore_errors: yes
|
|
|
|
register: invalid_parameter
|
|
|
|
|
|
|
|
- name: Ensure task fails with error
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- invalid_parameter is failed
|
|
|
|
- "invalid_parameter.msg == 'Invalid options for wait_for_connection: foo'"
|