2017-01-20 20:18:12 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Ensure we have loopback 888 for testing
|
|
|
|
ios_config:
|
|
|
|
src: config.j2
|
2017-05-30 13:54:22 +00:00
|
|
|
provider: "{{ cli }}"
|
2017-01-20 20:18:12 +00: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, "") }}'
|