I'm trying to run a playbook with to upgrade the latest firmware on a few edge routers on my network:
- name: Update External ERX with latest firmware
hosts: externaledgerouters
remote_user: BudAdmin
tasks:
- name: Update ERX Firmware
become: true
shell: "add system image https://dl.ui.com/firmwares/edgemax/v2.0.9-hotfix.4/ER-e50.v2.0.9-hotfix.4.5521907.tar"
Whenever I run this on a test target, I get the following error message on the task:
fatal: [ADM-TEST]: FAILED! => {"changed": true, "cmd": "add system image https://dl.ui.com/firmwares/edgemax/v2.0.9-hotfix.4/ER-e50.v2.0.9-hotfix.4.5521907.tar", "delta": "0:00:00.017078", "end": "2022-09-22 12:26:50.331550", "msg": "non-zero return code", "rc": 127, "start": "2022-09-22 12:26:50.314472", "stderr": "/bin/sh: add: command not found", "stderr_lines": ["/bin/sh: add: command not found"], "stdout": "", "stdout_lines": []}
I run the command directly on the edge router and it works, so I'm not sure what I'm missing here. Thanks in advance.