This role fine tunes Raspberry Pi 4.
This role can blacklist certain modules if wished. For example, you can blacklist modules to disable WiFi or Bluetooth to save some energy/money.
If modules for WiFi or Bluetooth are disabled. This role auto-detects this and disables certain services.
For Wifi it's wpa_supplicant services and Bluetooth it's hciuart
| Name | Default | Description |
|---|---|---|
raspberry_pi_reboot |
true | Allows the role to reboot the system. |
raspberry_pi_blacklist_modules |
[] | List of modules to Blacklist. e.g. Disable WiFi [brcmfmac, brcmutil] or disable Bluetooth [btbcm, hci_uart] |
raspberry_pi_cmdline_options |
{} | Dictionary to add configuration options to cmdline.txt. If only key without option add empty string. See example playbook. Documentation |
| Name | Description |
|---|---|
raspberry_pi_all |
Tag to run all tasks. |
raspberry_pi_preflight |
Tag to run preflight tasks. |
raspberry_pi_configure |
Tag to run configure tasks. |
None
- name: All
hosts: all
debugger: on_failed
roles:
- role: ansible-role-raspberry-pi
vars:
raspberry_pi_blacklist_modules:
- brcmfmac # disable WiFi
- brcmutil # disable WiFi
- btbcm # disable Bluetooth
- hci_uart # disable Bluetooth
raspberry_pi_cmdline_options:
consoleblank: 15
test: ""MIT License
Daniel von Essen