From 9e00247549262cd771eb598bba1055b9b7b2ae63 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 28 May 2019 12:24:27 -0400 Subject: [PATCH] Use wait_for in prepare_junos_tests.yaml 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 e99191374e4a7d..2cae1f2cd56e0f 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