Posted on June 20, 2021 10:38 pm
 |  Asked by michael
 |  40 views
RESOLVED
0
0
Print Friendly, PDF & Email

folks

i have the ansible play below

– name: BOOT SYSTEM COMMAND
eos_command:
commands: boot system flash:{{NEWOS}}

NEWOS is a variable for EOS version vEOS-lab-4.26.1F.swi but it fails with the error below

TASK [BOOT SYSTEM COMMAND] *****************************************************
fatal: [vEOS-0]: FAILED! => {“changed”: false, “msg”: “boot system flash:vEOS-lab-4.26.1F.swi\r\n% Invalid input\r\nvEOS-0#”}

the command works when applied directly on the switch though it is followed by a warning

anyone any advice or views on this

thanks to anyone toaking the time to look or post a reply

0
Posted by michael
Answered on June 21, 2021 9:47 am

folks

got this sorted, needed to use the eos_config module not eos_command

Post your Answer

You must be logged in to post an answer.