mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fd5db52fd9
This avoids passing -u <user> -k, as it will just consume the credentials from group_vars
13 lines
366 B
YAML
13 lines
366 B
YAML
---
|
|
|
|
- name: Ensure we have loopback 888 for testing
|
|
ios_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, "") }}'
|