ansible/test/integration/targets/prepare_iosxr_tests/tasks/main.yml
Ricardo Carrillo Cruz 69efb61008 Add provider param to prepare_iosxr_tests role tasks (#25163)
This will avoid passing -u -k to ansible-playbook
2017-05-30 20:32:50 +02:00

13 lines
368 B
YAML

---
- name: Ensure we have loopback 888 for testing
iosxr_config:
src: config.j2
provider: "{{ cli }}"
# 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, "") }}'