mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
e618221a0f
Previous single block wasn't working for Eth2, despite not erroring out.
27 lines
608 B
YAML
27 lines
608 B
YAML
- name: enable cli on remote device
|
|
eos_eapi:
|
|
enable_http: yes
|
|
enable_https: yes
|
|
enable_local_http: yes
|
|
enable_socket: yes
|
|
provider: "{{ cli }}"
|
|
register: eos_eapi_output
|
|
connection: local
|
|
|
|
- name: Enable Ethernet1 interface and disable switchport
|
|
eos_config:
|
|
lines:
|
|
- no shutdown
|
|
- no switchport
|
|
parents: int Ethernet1
|
|
authorize: yes
|
|
connection: local
|
|
|
|
- name: Enable Ethernet2 interface and disable switchport
|
|
eos_config:
|
|
lines:
|
|
- no shutdown
|
|
- no switchport
|
|
parents: int Ethernet2
|
|
authorize: yes
|
|
connection: local
|