mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
513c75079e
* Add eos and fix tests to run multiple connections * Update tests to report connection * Add missing START messages * Fix unspecified connection * Python 3 updates Exceptions don't have `.message` in Python 3 * Override `become` when using `connection=local` * Slight restructuring to make eapi easier later on * Move eapi toggle to prepare_eos * Pull out connection on eapi tasks
27 lines
542 B
YAML
27 lines
542 B
YAML
- name: Enable Ethernet1 interface and disable switchport
|
|
eos_config:
|
|
lines:
|
|
- no shutdown
|
|
- no switchport
|
|
parents: int Ethernet1
|
|
become: yes
|
|
connection: network_cli
|
|
|
|
- name: Enable Ethernet2 interface and disable switchport
|
|
eos_config:
|
|
lines:
|
|
- no shutdown
|
|
- no switchport
|
|
parents: int Ethernet2
|
|
become: yes
|
|
connection: network_cli
|
|
|
|
- name: enable eapi
|
|
eos_eapi:
|
|
http: yes
|
|
https: yes
|
|
local_http: no
|
|
enable_socket: yes
|
|
become: yes
|
|
connection: network_cli
|
|
tags: eapi
|