Open mpsOxygen opened 4 years ago
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
@mpsOxygen, just so you are aware we have a dedicated Working Group for network.
You can find other people interested in this in #ansible-network
on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community
A workaround is to pass the y into the command line string.
Change:
to:
Yes, that is the way I ended up doing it.
Hi all,
You can separate the transfer download start as a separate play. Then use wait_for: [y/N] prompt, then answer y.
A workaround is to pass the y into the command line string.
Change: - "transfer download start"
to: - "transfer download start\ry"
This is not working for me... I am trying to save config with command "save config" and it is giving me prompt like Are "you sure you want to save? (y/n)" I tried to pass /y but not working.
SUMMARY
While sending commands to aireos devices that trigger a prompt, the module cannot handle the prompt/ For example if I try to copy a file to from the device using the transfer command: (Cisco Controller) User: admin Password:**** Welcome to the Cisco Mobility Express command line interface. Only commands which are listed in the command reference guide for this release are supported. http://www.cisco.com/c/en/us/support/wireless/mobility-express/products-command-reference-list.html (Cisco Controller) >transfer download datatype config
(Cisco Controller) >transfer download mode tftp
(Cisco Controller) >transfer download serverip 172.25.1.1
(Cisco Controller) >transfer download filename config.txt
(Cisco Controller) >transfer download start
Mode............................................. TFTP
Data Type........................................ Config
TFTP Server IP................................... 172.25.1.1 TFTP Packet Timeout.............................. 6 TFTP Max Retries................................. 10 TFTP Path........................................ TFTP Filename.................................... config.txt Encrypt/Decrypt Flag............................. Disabled
Warning: Downloading configuration will cause the controller to reset...
This may take some time. Are you sure you want to start? (y/N) y
TFTP Config transfer starting.
TFTP receive complete... updating configuration.
TFTP receive complete... storing in flash.
Sync config to peers.
System being reset.
The module just times out even if I send the command with a carriage return followed by an y: transfer download start\ry This is because after this command there will be no prompt to catch.
ISSUE TYPE
COMPONENT NAME
aireos_command
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
NAME: "Mobility Express" , DESCR: "Cisco Aironet 2800 Series Mobility Express" PID: AIR-AP2802I-E-K9, Image version: 8.8.125.0
STEPS TO REPRODUCE
EXPECTED RESULTS
I would expect a changed result. I also tried this with aireos_config and it doesn't work with to many config changes. Because there is no way to turn of prompts like on ios with file prompt quiet, I would expect the module to be able to handle this.
ACTUAL RESULTS