2017-01-31 20:10:14 +01:00
|
|
|
---
|
|
|
|
- name: Ensure we have loopback 888 for testing
|
|
|
|
iosxr_config:
|
|
|
|
src: config.j2
|
2017-12-20 17:26:09 +01:00
|
|
|
connection: network_cli
|
2017-01-31 20:10:14 +01:00
|
|
|
|
2018-01-10 17:40:54 +01:00
|
|
|
- name: Enable Netconf service
|
|
|
|
iosxr_netconf:
|
|
|
|
netconf_port: 830
|
|
|
|
netconf_vrf: 'default'
|
|
|
|
state: present
|
|
|
|
connection: network_cli
|
|
|
|
tags: netconf
|
|
|
|
|
2017-01-31 20:10:14 +01:00
|
|
|
# Some AWS hostnames can be longer than those allowed by the system we are testing
|
|
|
|
# Truncate the hostname
|
|
|
|
# http://jinja.pocoo.org/docs/2.9/templates/#truncate
|
|
|
|
- set_fact:
|
|
|
|
shorter_hostname: '{{ inventory_hostname_short| truncate(10, True, "") }}'
|