From 7f536630eb893ce3fb385c70689fa1ecfc3285b7 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sun, 16 Jun 2019 16:03:55 -0400 Subject: [PATCH] Use wait_for in prepare_junos_tests.yaml (#57073) This should reduce the amount of time we are waiting for netconf to come online. Signed-off-by: Paul Belanger --- .../targets/prepare_junos_tests/tasks/main.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/integration/targets/prepare_junos_tests/tasks/main.yml b/test/integration/targets/prepare_junos_tests/tasks/main.yml index e99191374e4..2cae1f2cd56 100644 --- a/test/integration/targets/prepare_junos_tests/tasks/main.yml +++ b/test/integration/targets/prepare_junos_tests/tasks/main.yml @@ -8,6 +8,8 @@ tags: netconf - name: wait for netconf server to come up - pause: - seconds: 10 - tags: netconf + delegate_to: localhost + wait_for: + host: "{{ hostvars[item].ansible_host }}" + port: 830 + with_inventory_hostnames: junos