To upgrade all firmware through fwupd:
- name: Update firmware
hosts: computers
gather_facts: no
serial:
- 1
- 5
roles:
- ufrmath.computer_labs.wol
- ufrmath.computer_labs.update_firmware
which uses the role ufrmath.computer_labs.update_firmware.
This first refresh the list of firmware:
fwupdmgr refresh --force
then determine if update are available:
fwupdmgr get-updates --json
and finally update firmware if needed with:
fwupdmgr update -y --no-reboot-check --json