summaryrefslogtreecommitdiff
path: root/x220.yml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-12-31 17:21:42 +0200
committerLars Wirzenius <liw@liw.fi>2022-01-01 22:01:31 +0200
commit8b796467fcef03133c40f88ac331b1a0d06033a8 (patch)
tree3d11453f15824ea71abda70f4b3e3150b712ab9a /x220.yml
parent9ace8e9b7d0a15cf6aeeedada8bb7646acc8e6b0 (diff)
downloadv-i-8b796467fcef03133c40f88ac331b1a0d06033a8.tar.gz
feat: make X220 install work with cryptsetup and everything
Sponsored-by: author
Diffstat (limited to 'x220.yml')
-rw-r--r--x220.yml28
1 files changed, 25 insertions, 3 deletions
diff --git a/x220.yml b/x220.yml
index 1c18909..e3d8c08 100644
--- a/x220.yml
+++ b/x220.yml
@@ -10,6 +10,28 @@
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"
+ file:
+ state: directory
+ path: /root/.ssh
+ owner: root
+ group: root
+ mode: 0700
+
+ - name: "set root authorized keys"
+ copy:
+ content: |
+ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPQe6lsTapAxiwhhEeE/ixuK+5N8esCsMWoekQqjtxjP liw personal systems
+ dest: /root/.ssh/authorized_keys
+ owner: root
+ group: root
+ mode: 0600
+
- name: "configure keyboard layout"
copy:
content: |
@@ -47,12 +69,12 @@
ansible_python_interpreter: /usr/bin/python3
sane_debian_system_version: 2
- sane_debian_system_hostname: x220
- sane_debian_system_codename: buster
+# 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 buster contrib non-free
+ deb http://deb.debian.org/debian bullseye contrib non-free
unix_users_version: 2
unix_users: