Minimal role to manage config entries in a Raspberry PI boot config. After changing the boot config, it will restart the raspberry pi and wait for it to come back.
Nothing specific so far.
Available variables are listed below, along with default values (see defaults/main.yml):
boot_config_lines, optional
List of verbatim config lines to be put into /boot/config.txt
(no assertions
about uniqueness are made). Example:
boot_config_lines:
- "gpu_mem=196"
- "dtoverlay=pi3-disable-wifi"
- "dtoverlay=pi3-disable-bt"
boot_config, optional
Dictionary where every key translates to a unique setting in /boot/config.txt
.
Example:
boot_config:
gpu_mem: '196'
rpi_boot_config_file, optional
Path of the Raspberry Pi boot configuration file to manage, default:
/boot/config.txt
. Example:
rpi_boot_config_file: /boot/config.txt
None.
- hosts: raspberrypis
roles:
- { role: rpi_boot_config, boot_config_lines: ['gpu_mem=196'] }
- add ansible 7, python 3.11
- drop ansible 5, python 3.8
- drop support for Debian
jessie
- drop support for ansible older than 5.0
- add test for Debian
bullseye
- moved CI to Github Actions
- drop support for ansible 2.9, python3.7
- upgraded CI tests to use python3.7+
- upgraded molecule to version 3.x
- drop support for ansible 2.8
- add configurable path to boot config file
- renamed role to
rpi_boot_config
- drop support for ansible 2.7
- use ansible
reboot
module - drop support for ansible 2.5, 2.6
- drop support for python2
- add support for ansible 2.9
- add support for debian buster
- upgraded ansible-lint
- introduce semver release numbering
- expand tested OS to raspbian jessie, buster
- switch to molecule testing framework
- added new, optional variable
boot_config_lines
- initial release
MIT / BSD
This role was created in 2016 by Paul Kremer.