The role ufrmath.computer_labs.setup_bios
is used modify BIOS settings programmatically, currently only for Dell computers.
Dell provides the utility Dell Command | Configure.
The first step is to install it, either using the custom repository server:
sudo apt install command-configure
or download the Debian package from Dell website.
The command to set a BIOS password is
/opt/dell/dcc/cctk --SetupPwd={{bios_password}}
and to get Get BIOS service tag:
/opt/dell/dcc/cctk --SvcTag
To get current value for a parameter
/opt/dell/dcc/cctk --{{ item.key }}
and to change it:
/opt/dell/dcc/cctk --{{ item.key }}={{ item.value }} --ValSetupPwd={{bios_password}}
All possible options are described in the Dell Dell Command | Configure Command Line Interface Reference Guide.