You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-6Lines changed: 31 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Ansible role: rpi-boot-config
2
2
=============================
3
3
4
-
Minimal role to manage config entries in a Raspberry PI [boot config](http://www.raspberrypi.org/documentation/configuration/config-txt.md). After changing the boot config, it will restart the raspberry pi and wait for it to come back. This requires that the *ansible_host* is set correctly in the inventory:
4
+
Minimal role to manage config entries in a Raspberry PI [boot config](http://www.raspberrypi.org/documentation/configuration/config-txt.md). After changing the boot config, it will restart the raspberry pi and wait for it to come back. This requires either the `inventory_hostname` is resolvable or that the `ansible_host` is set correctly in the inventory:
5
5
6
6
[all]
7
7
raspberry ansible_host=192.168.1.101
@@ -17,12 +17,27 @@ Role Variables
17
17
18
18
Available variables are listed below, along with default values (see defaults/main.yml):
19
19
20
-
boot_config: {}
20
+
**boot\_config\_lines**, optional
21
21
22
-
This is the only variable for this role right now. If used, it has to be a dictionary with key value pairs, each of which will be set in the boot config. Example:
22
+
List of verbatim config lines to be put into `/boot/config.txt` (no assertions about uniqueness are made). Example:
23
+
24
+
```
25
+
boot_config_lines:
26
+
- "gpu_mem=196"
27
+
- "dtoverlay=pi3-disable-wifi"
28
+
- "dtoverlay=pi3-disable-bt"
29
+
```
30
+
31
+
32
+
**boot\_config**, optional
33
+
34
+
Dictionary where every key translates to a unique setting in `/boot/config.txt`. Example:
0 commit comments