src.nth.io/

summaryrefslogtreecommitdiff
path: root/rpi-base/templates/40-net.yaml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'rpi-base/templates/40-net.yaml.j2')
-rw-r--r--rpi-base/templates/40-net.yaml.j218
1 files changed, 18 insertions, 0 deletions
diff --git a/rpi-base/templates/40-net.yaml.j2 b/rpi-base/templates/40-net.yaml.j2
new file mode 100644
index 0000000..f473a2b
--- /dev/null
+++ b/rpi-base/templates/40-net.yaml.j2
@@ -0,0 +1,18 @@
+# {{ansible_managed}}
+
+network:
+ version: 2
+ ethernets:
+ eth0:
+ dhcp4: true
+ optional: true
+{% if rpi_base_enable_wifi %}
+ wifis:
+ wlan0:
+ regulatory-domain: "US"
+ dhcp4: true
+ optional: true
+ access-points:
+ "{{rpi_base_wifi_ssid}}":
+ password: "{{rpi_base_wifi_password}}"
+{% endif %}