mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
accf79f406
* Handle non-XML errors * Move iosxr_netconf tuning to prepare * Apply provider warning to netconf as well * Update netconf task files
19 lines
525 B
YAML
19 lines
525 B
YAML
---
|
|
- name: Ensure we have loopback 888 for testing
|
|
iosxr_config:
|
|
src: config.j2
|
|
connection: network_cli
|
|
|
|
- name: Enable Netconf service
|
|
iosxr_netconf:
|
|
netconf_port: 830
|
|
netconf_vrf: 'default'
|
|
state: present
|
|
connection: network_cli
|
|
tags: netconf
|
|
|
|
# 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, "") }}'
|