/ansible-role-rpi-boot-config

Configure raspberry pi /boot/config.txt

Primary LanguagePythonMIT LicenseMIT

Ansible role: rpi-boot-config

Build Status Build Status Updates Ansible Role

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.

Requirements

Nothing specific so far.

Role Variables

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'

Dependencies

None.

Example Playbook

- hosts: raspberrypis
  roles:
      - { role: rpi_boot_config, boot_config_lines: ['gpu_mem=196'] }

Changelog

3.0.0

  • use ansible reboot module
  • drop support for ansible 2.5, 2.6

2.0.0

  • drop support for python2
  • add support for ansible 2.9
  • add support for debian buster
  • upgraded ansible-lint

1.1.1

  • introduce semver release numbering
  • expand tested OS to raspbian jessie, buster
  • switch to molecule testing framework

1.1

  • added new, optional variable boot_config_lines

1.0

  • initial release

License

MIT / BSD

Author Information

This role was created in 2016 by Paul Kremer.