blob: 8ada933a90085e049c9a57b13aebbf573988e998 (
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
ansible.netcommon.cli_config:
config: "{{ lines }}"
|