summaryrefslogtreecommitdiff
path: root/tests/integration/targets/prepare_vyos_tests/tasks/main.yaml
blob: c5b0d54b448027ed3798a63eac3f66ed04fbac3b (plain)
1
2
3
4
5
6
7
8
9
10
---
- name: Ensure required interfaces are present in running-config
  vars:
    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 # noqa ignore-errors
  ansible.netcommon.cli_config:
    config: "{{ lines }}"