Open paullavelle opened 2 years ago
Hi @paullavelle Thanks for submitting the issue. But I am unable to reproduce the issue. I tried with the following playbook
- name: eos_config
arista.eos.eos_config:
src: 'intended_config.txt'
save_when: always
intended_config.txt
interface Ethernet1
description test
no shutdown
!
interface Ethernet2
description test2
no shut
!
username ansible secret admin1
!
Tried with 'eos 4.24' , 'ansible-devel, stable-2.11' , 'collection eos-5.0.0 and 2.2.0' The playbook works fine as expected. Can you please try the latest eos collection?
SUMMARY
The eos_config module creates a separate connection when the save_when action is used.
For example:
In the case of a password change the save_when: always action fails as the password is now invalid.
Can the save_when action be updated to (re)use a single connection?
ISSUE TYPE
COMPONENT NAME
eos_config
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Arista EOS 4.25 / 4.26 / 4.27
STEPS TO REPRODUCE
show agent CapiApp logs
EXPECTED RESULTS
ACTUAL RESULTS