summaryrefslogtreecommitdiff
path: root/tests/integration/targets/prepare_vyos_tests/tasks
diff options
context:
space:
mode:
authoransible-zuul[bot] <48994755+ansible-zuul[bot]@users.noreply.github.com>2020-01-16 18:56:16 +0000
committerGitHub <noreply@github.com>2020-01-16 18:56:16 +0000
commit03addce56012d4bd360e18612d2eb3af04d8f01a (patch)
tree9cf59872c2ddc7e99595db4f47c72a7ce08b6c10 /tests/integration/targets/prepare_vyos_tests/tasks
parentd31b74ba6c74a6e3cdebd80b9eb5272aeb9b0fb4 (diff)
parent6b6166151faa3d811ae0ec3010a89e518a26287b (diff)
downloadvyos-ansible-collection-03addce56012d4bd360e18612d2eb3af04d8f01a.tar.gz
vyos-ansible-collection-03addce56012d4bd360e18612d2eb3af04d8f01a.zip
Merge pull request #59 from CaptTrews/master
Updated from network content collector Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'tests/integration/targets/prepare_vyos_tests/tasks')
-rw-r--r--tests/integration/targets/prepare_vyos_tests/tasks/main.yaml14
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/integration/targets/prepare_vyos_tests/tasks/main.yaml b/tests/integration/targets/prepare_vyos_tests/tasks/main.yaml
index 5813284..afbc291 100644
--- a/tests/integration/targets/prepare_vyos_tests/tasks/main.yaml
+++ b/tests/integration/targets/prepare_vyos_tests/tasks/main.yaml
@@ -1,13 +1,9 @@
---
- name: Ensure required interfaces are present in running-config
- network.cli.cli_config:
- config: "{{ lines }}"
vars:
- lines: |
- set interfaces ethernet eth0 address dhcp
- set interfaces ethernet eth0 speed auto
- set interfaces ethernet eth0 duplex auto
- set interfaces ethernet eth1
- set interfaces ethernet eth2
- delete interfaces loopback lo
+ lines: "set interfaces ethernet eth0 address dhcp\nset interfaces ethernet eth0\
+ \ speed auto\nset interfaces ethernet eth0 duplex auto\nset interfaces ethernet\
+ \ eth1\nset interfaces ethernet eth2\ndelete interfaces loopback lo\n"
ignore_errors: true
+ ansible.netcommon.cli_config:
+ config: '{{ lines }}'