infothrill.rpi_boot_config
Ansible 角色:rpi_boot_config
一个简单的角色,用于管理 Raspberry Pi 的启动配置项 boot config。 更改启动配置后,系统会重启 Raspberry Pi,并等待其重新启动。
要求
目前没有特定要求。
角色变量
可用的变量如下所示,并附有默认值(见 defaults/main.yml):
boot_config_lines,可选
需要放入 /boot/config.txt
的原始配置行列表(不保证唯一性)。示例:
boot_config_lines:
- "gpu_mem=196"
- "dtoverlay=pi3-disable-wifi"
- "dtoverlay=pi3-disable-bt"
boot_config,可选
一个字典,每个键对应于 /boot/config.txt
中的唯一设置。示例:
boot_config:
gpu_mem: '196'
rpi_boot_config_file,可选
要管理的 Raspberry Pi 启动配置文件的路径,默认值为:/boot/config.txt
。示例:
rpi_boot_config_file: /boot/config.txt
依赖项
无。
示例剧本
- hosts: raspberrypis
roles:
- { role: rpi_boot_config, boot_config_lines: ['gpu_mem=196'] }
更新日志
xxxx
- 添加对 Ansible 7 和 Python 3.11 的支持
- 删除对 Ansible 5 和 Python 3.8 的支持
- 删除对 Debian
jessie
的支持
4.3.0
- 删除对 Ansible 5.0 之前版本的支持
- 添加对 Debian
bullseye
的测试
4.2.0
- 将 CI 移至 GitHub Actions
- 删除对 Ansible 2.9 和 Python 3.7 的支持
4.1.0
- 升级 CI 测试以使用 Python 3.7+
- 升级 molecule 到 3.x 版本
- 删除对 Ansible 2.8 的支持
- 添加可配置的启动配置文件路径
4.0.0
- 将角色重命名为
rpi_boot_config
- 删除对 Ansible 2.7 的支持
3.0.0
- 使用 Ansible
reboot
模块 - 删除对 Ansible 2.5 和 2.6 的支持
2.0.0
- 删除对 Python 2 的支持
- 添加对 Ansible 2.9 的支持
- 添加对 Debian Buster 的支持
- 升级 Ansible-lint
1.1.1
- 引入语义版本发布编号
- 扩大支持的操作系统至 Raspbian Jessie 和 Buster
- 切换到 molecule 测试框架
1.1
- 添加新的可选变量
boot_config_lines
1.0
- 初始发布
许可证
MIT / BSD
作者信息
该角色由 Paul Kremer 于 2016 年创建。