summaryrefslogtreecommitdiff
path: root/std.yml
diff options
context:
space:
mode:
Diffstat (limited to 'std.yml')
-rw-r--r--std.yml48
1 files changed, 44 insertions, 4 deletions
diff --git a/std.yml b/std.yml
index a335b02..08724a9 100644
--- a/std.yml
+++ b/std.yml
@@ -116,7 +116,30 @@
name: ifupdown
state: absent
- - name: "configure networkd"
+ - name: "enable the non-free-firmware component on bookworm"
+ when: debian_release != "bullseye"
+ apt_repository:
+ repo: "deb http://deb.debian.org/debian {{ debian_release}} non-free-firmware"
+ state: present
+ update_cache: yes
+
+ - name: "install iwd and firmware for wifi"
+ apt:
+ name:
+ - firmware-brcm80211
+ - firmware-iwlwifi
+ - firmware-libertas
+ - firmware-misc-nonfree
+ - firmware-realtek
+ - firmware-ti-connectivity
+ - iwd
+
+ - name: "enable iwd"
+ systemd:
+ name: iwd
+ enabled: yes
+
+ - name: "configure networkd for Ethernet"
copy:
content: |
[Match]
@@ -126,6 +149,21 @@
DHCP=yes
dest: /etc/systemd/network/external.network
+ - name: "configure networkd for wireless"
+ copy:
+ content: |
+ [Match]
+ Name=wlan*
+
+ [Network]
+ DHCP=yes
+ dest: /etc/systemd/network/wireless.network
+
+ - name: "copy wireless credentials from host to target"
+ copy:
+ src: /var/lib/iwd/
+ dest: /var/lib/iwd/
+
- name: "enable networkd"
systemd:
name: systemd-networkd
@@ -134,11 +172,13 @@
vars:
ansible_python_interpreter: /usr/bin/python3
- # You may want to override these.
user_locale: |
- export LC_CTYPE=fi_FI.UTF8
+ export LC_CTYPE=C.UTF8
+
+ # You may want to override these to get a non-US keyboard layout.
user_keyboard_model: pc105
- user_keyboard_layout: fi
+ user_keyboard_layout: us
user_console_codeset: Lat15
passwordless_root: false
+