summaryrefslogtreecommitdiff
path: root/x220.yml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-01-22 20:22:14 +0200
committerLars Wirzenius <liw@liw.fi>2022-01-22 20:22:14 +0200
commit7081cc3bd0b3ab0f18269d17b4555d55a3aef6be (patch)
tree321c0d31dc49342df29ce7f90dc43f24751221da /x220.yml
parentae24e2ead28f7053c79ac1f79c402f3141c44dc4 (diff)
downloadv-i-7081cc3bd0b3ab0f18269d17b4555d55a3aef6be.tar.gz
exolobe5: don't set up networing, it don't work
Sponsored-by: author
Diffstat (limited to 'x220.yml')
-rw-r--r--x220.yml104
1 files changed, 25 insertions, 79 deletions
diff --git a/x220.yml b/x220.yml
index 0b33376..0400fc9 100644
--- a/x220.yml
+++ b/x220.yml
@@ -1,89 +1,35 @@
-# Ansible playbook to install stuff on my Thinkpad X220.
-
- hosts: image
- roles:
- - sane_debian_system
- - ssd
- - comfortable-debian-system
- - unix_users
-# - gnome-system
- - intel-wifi
-
- pre_tasks:
-
- - name: "set hostname manually"
- shell: |
- echo x220 > /etc/hostname
- sed -i 's/^127\.0\.1/127.0.0.1 x220/' /etc/hosts
-
- - name: "create /root/.ssh"
+ tasks:
+ - name: "install software"
+ apt:
+ name:
+ - bridge-utils
+ - name: "delete external.network"
file:
- state: directory
- path: /root/.ssh
- owner: root
- group: root
- mode: 0700
-
- - name: "set root authorized keys"
+ path: /etc/systemd/network/external.network
+ state: absent
+ - name: "add br0.netdev"
copy:
content: |
- {{ liw_personal_ssh_pub }}
- dest: /root/.ssh/authorized_keys
- owner: root
- group: root
- mode: 0600
-
- - name: "configure keyboard layout"
+ [NetDev]
+ Name=br0
+ Kind=bridge
+ dest: /etc/systemd/network/br0.netdev
+ - name: "bind eth0 to bridge br0"
copy:
content: |
- XKBMODEL="pc105"
- XKBLAYOUT="fi"
- XKBVARIANT=""
- XKBOPTIONS=""
- BACKSPACE="guess"
- dest: /etc/default/keyboard
+ [Match]
+ Name=eth0
- - name: "configure console"
+ [Network]
+ Bridge=br0
+ dest: /etc/systemd/network/bind.network
+ - name: "have br0 get address with DHCP"
copy:
content: |
- ACTIVE_CONSOLES="/dev/tty[1-6]"
- CHARMAP="UTF-8"
- CODESET="Lat15"
- FONTFACE="Fixed"
- FONTSIZE="8x16"
- VIDEOMODE=
- dest: /etc/default/console-setup
-
- - name: "set default LC_TYPE for all users"
- shell:
- echo export LC_CTYPE=fi_FI.UTF8 >> /etc/profile.d/finnish.sh
-
- - name: "configure networking"
- copy:
- content: |
- auto eth0
- iface eth0 inet dhcp
- iface eth0 inet6 auto
- dest: /etc/network/interfaces.d/wired
-
- vars:
- ansible_python_interpreter: /usr/bin/python3
-
- sane_debian_system_version: 2
-# sane_debian_system_hostname: x220
- sane_debian_system_codename: bullseye
- sane_debian_system_timezone: Europe/Helsinki
- sane_debian_system_sources_lists:
- - repo: |
- deb http://deb.debian.org/debian bullseye contrib non-free
-
- unix_users_version: 2
- unix_users:
- - username: liw
- comment: Lars Wirzenius
- sudo: yes
- authorized_keys: |
- {{ liw_personal_ssh_pub }}
+ [Match]
+ Name=br0
- liw_personal_ssh_pub: |
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPQe6lsTapAxiwhhEeE/ixuK+5N8esCsMWoekQqjtxjP liw personal systems
+ [Network]
+ DHCP=yes
+ dest: /etc/systemd/network/br0.network