Hi @jonlar!
At first glance I'm thinking it's caused by the "local upload" - perhaps a restriction of working on two devices simultaneously, we may want to look into
running it serially:
---
- hosts: switches
roles:
- role: arubanetworks.aoscx_role
serial: 1
gather_facts: False
tasks:
- name: Upload firmware through local file
aoscx_upload_firmware:
partition_name: '{{ boot_partition }}'
firmware_file_path: '/path/to/firmware/ArubaOS-{{ aruba_os }}_{{ aruba_firmware }}.swi'
Could you run the playbook in verbose mode by adding `-vvvv` at the end of the `ansible-playbook` command? Please attach the full output.
------------------------------
Tiffany Chiapuzio-Wong
------------------------------
Original Message:
Sent: Jul 28, 2021 05:15 AM
From: Jon Larsen
Subject: Ansible firmware upload fails
I'm following the Ansible guide at Network Maintenance to upgrade the firmware on switches.
It is working perfectly when I target one switch, but when targeting two switches, one of them always fails. Both work if I target them alone.
TASK [Upload firmware through local file] ************************************************************************************************************************************************
fatal: [switch1]: FAILED! => {"changed": false, "module_stderr": "Killed\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 137}
changed: [switch2]
PLAY RECAP *******************************************************************************************************************************************************************************
switch1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
switch2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
I have attached playbooks etc. Any tips?
------------------------------
Jon Larsen
------------------------------