Open lowkeylamb opened 2 years ago
It isn't well documented, but edgeos_command
also supports commands being a list of dictionaries similar to eos_command
.
If that fails for some reason, the cli_command
module should work with edgeos' cliconf plugin to do the correct thing more explicitly.
SUMMARY
I'm trying to create a playbook to update a few edge routers to current hotfixes, but I cannot find a way to get around the prompted yes/no question with the supported community.network.edgeos_command module parameters (wait_for, interval, commands, retries, match)
add system image https://www.ui.com/download/edgemax/edgerouter-x/default/edgerouter-er-xer-x-sfpep-r6er-10x-firmware-v209-hotfix4 Version [v2.0.9-hotfix.4.5521907.220630.0657] is about to be replaced Are you sure you want to replace old version? (Yes/No) [Yes]:
ISSUE TYPE
COMPONENT NAME
community.network.edgeos_command module
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Windows Terminal 1.14.2281.0 running Ubuntu
Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal
STEPS TO REPRODUCE
EXPECTED RESULTS
The playbook seems to hang, then eventually times out, because you have to answer yes/no after entering the command:
add system image https://www.ui.com/download/edgemax/edgerouter-x/default/edgerouter-er-xer-x-sfpep-r6er-10x-firmware-v209-hotfix4#
Version [v2.0.9-hotfix.4.5521907.220630.0657] is about to be replaced Are you sure you want to replace old version? (Yes/No) [Yes]:
ACTUAL RESULTS