mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
integration/targets/ios_* work to support IOS (#20414)
* WIP * Don't set connection: network_cli in the playbook * ios_config tests now passing * Create test loopback device * delete * ios_* pass (apart from ios_facts) * Remove provider lines
This commit is contained in:
parent
7330ab8062
commit
a12033a6e0
38 changed files with 53 additions and 142 deletions
12
test/integration/targets/prepare_ios_tests/tasks/main.yml
Normal file
12
test/integration/targets/prepare_ios_tests/tasks/main.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: Ensure we have loopback 888 for testing
|
||||
ios_config:
|
||||
src: config.j2
|
||||
|
||||
|
||||
# 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, "") }}'
|
|
@ -0,0 +1,4 @@
|
|||
interface Loopback888
|
||||
description test for ansible
|
||||
shutdown
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue