---
- debug: msg="START prepare_junos_tests/main.yaml"

- name: Ensure netconf is enabled
  junos_netconf:
    state: present
  connection: network_cli
  tags: netconf

- name: wait for netconf server to come up
  delegate_to: localhost
  wait_for:
    host: "{{ hostvars[item].ansible_host }}"
    port: 830
  with_inventory_hostnames: junos
