summaryrefslogtreecommitdiff
path: root/test/integration/targets/prepare_ios_tests
diff options
context:
space:
mode:
authorJohn R Barker <john@johnrbarker.com>2017-01-20 20:18:12 +0000
committerGitHub <noreply@github.com>2017-01-20 20:18:12 +0000
commita12033a6e0ea280fbd5b3643b640ff39f434553b (patch)
tree96c3cc393297ef1ad020f6e5e8c040749edda147 /test/integration/targets/prepare_ios_tests
parent7330ab8062545478e3b1951c94ae4c98008244ea (diff)
downloadansible-a12033a6e0ea280fbd5b3643b640ff39f434553b.tar.gz
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
Diffstat (limited to 'test/integration/targets/prepare_ios_tests')
-rw-r--r--test/integration/targets/prepare_ios_tests/tasks/main.yml12
-rw-r--r--test/integration/targets/prepare_ios_tests/templates/config.j24
2 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/targets/prepare_ios_tests/tasks/main.yml b/test/integration/targets/prepare_ios_tests/tasks/main.yml
new file mode 100644
index 0000000000..fbf3ac8620
--- /dev/null
+++ b/test/integration/targets/prepare_ios_tests/tasks/main.yml
@@ -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, "") }}'
diff --git a/test/integration/targets/prepare_ios_tests/templates/config.j2 b/test/integration/targets/prepare_ios_tests/templates/config.j2
new file mode 100644
index 0000000000..c8eb3457f9
--- /dev/null
+++ b/test/integration/targets/prepare_ios_tests/templates/config.j2
@@ -0,0 +1,4 @@
+interface Loopback888
+ description test for ansible
+ shutdown
+