fortinet-ansible-dev / ansible-galaxy-fortios-collection

GNU General Public License v3.0
84 stars 48 forks source link

module fortios_monitor using selector: 'upgrade.system.firmware' #267

Closed Ben-Sassi-Oussema closed 5 days ago

Ben-Sassi-Oussema commented 11 months ago

"I want to upgrade my device from version 6.4.7 to version 7.0.12. I used the firmware image 'FGT_VM64-v7.0.12.M-build0523-FORTINET.out.' However, after running my playbook, the device was not upgraded , and I'm unsure why it didn't upgrade to version 7.0.12."

playbook log: ok: [device1] => { "changed": false, "invocation": { "module_args": { "access_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "enable_log": false, "params": { "file_content": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48RXJyb3I+PENvZGU+QWNjZXNzRGVuaWVkPC9Db2RlPjxNZXNzYWdlPkFjY2VzcyBEZW5pZWQ8L01lc3NhZ2U+PFJlc291cmNlPjwvUmVzb3VyY2U+PFJlcXVlc3RJZD42MWI1NDdhMzczNDE4M2UxMmE0YzwvUmVxdWVzdElkPjwvRXJyb3I+", "filename": "FGT_VM64-v7.0.12.M-build0523-FORTINET.out", "format_partition": true, "ignore_invalid_signature": false, "source": "upload" }, "selector": "upgrade.system.firmware", "vdom": "root" } }, "meta": { "action": "upgrade", "build": 1911, "http_method": "POST", "name": "firmware", "path": "system", "results": { "error": { "code": -593, "message": "-593" }, "status": "error" }, "serial": "FGV**", "status": "success", "vdom": "root", "version": "v6.4.7" } }

i used this playbook:

JieX19 commented 11 months ago

Hi @Ben-Sassi-Oussema,

I can reproduce the issue you mentioned. I tested the module with the Ansible fortiOS collection 2.3.0 and it works. I will look into the issue and it will be fixed in the next release.