infothrill.rpi_boot_config

Ansible Role: rpi_boot_config

Build status Ansible Role

This is a simple role to manage settings in the Raspberry Pi boot configuration file. After any changes, the role will restart the Raspberry Pi and wait for it to boot up again.

Requirements

No specific requirements.

Role Variables

Here are the available variables and their default values (found in defaults/main.yml):

boot_config_lines, optional

This is a list of configuration lines you want to add to /boot/config.txt. Note: there are no checks for duplicate entries. Example:

boot_config_lines:
    - "gpu_mem=196"
    - "dtoverlay=pi3-disable-wifi"
    - "dtoverlay=pi3-disable-bt"

boot_config, optional

This is a dictionary where each key corresponds to a unique setting in /boot/config.txt. Example:

boot_config:
    gpu_mem: '196'

rpi_boot_config_file, optional

This defines the path to the Raspberry Pi boot configuration file you want to manage. The default is /boot/config.txt. Example:

rpi_boot_config_file: /boot/config.txt

Dependencies

There are no dependencies.

Example Playbook

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

Changelog

xxxx

  • Added support for Ansible 7 and Python 3.11
  • Removed support for Ansible 5 and Python 3.8
  • Dropped support for Debian jessie

4.3.0

  • Removed support for Ansible versions older than 5.0
  • Added tests for Debian bullseye

4.2.0

  • Moved Continuous Integration (CI) to GitHub Actions
  • Removed support for Ansible 2.9 and Python 3.7

4.1.0

  • Upgraded CI tests to use Python 3.7+
  • Updated Molecule to version 3.x
  • Removed support for Ansible 2.8
  • Added configurable path to the boot config file

4.0.0

  • Renamed the role to rpi_boot_config
  • Removed support for Ansible 2.7

3.0.0

  • Used Ansible's reboot module
  • Removed support for Ansible 2.5 and 2.6

2.0.0

  • Removed support for Python 2
  • Added support for Ansible 2.9
  • Added support for Debian Buster
  • Upgraded Ansible Lint

1.1.1

  • Introduced semantic versioning for release numbering
  • Expanded tested operating systems to include Raspbian Jessie and Buster
  • Switched to the Molecule testing framework

1.1

  • Added a new optional variable boot_config_lines

1.0

  • Initial release

License

MIT / BSD

Author Information

This role was created by Paul Kremer in 2016.

Informazioni sul progetto

Configure raspberry pi boot config.txt

Installa
ansible-galaxy install infothrill.rpi_boot_config
Licenza
mit
Download
4.2k
Proprietario
I was born in the 20th century and I will die in the 21st century