summaryrefslogtreecommitdiff
path: root/v-i.yml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-08-13 22:22:02 +0300
committerLars Wirzenius <liw@liw.fi>2018-08-13 22:22:02 +0300
commit495e3c6cc60efb770a6b64ff02fc9ce6fc1e2e9b (patch)
treedb3629e7ceaa46fd883532a54e4911806f6a7974 /v-i.yml
downloadv-i-495e3c6cc60efb770a6b64ff02fc9ce6fc1e2e9b.tar.gz
Add: initial vmdb and the Ansible playbook it uses
This isn't ready yet, but it boots, and it configured network, and Finnish keyboard.
Diffstat (limited to 'v-i.yml')
-rw-r--r--v-i.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/v-i.yml b/v-i.yml
new file mode 100644
index 0000000..ac1205e
--- /dev/null
+++ b/v-i.yml
@@ -0,0 +1,52 @@
+# Ansible playbook to install stuff for v-i.
+# TODO:
+# - maybe install iwlwifi firmware?
+# - install liw-openpgp.pub and a gpg config to use my Yubikey
+
+
+- hosts: image
+ tasks:
+
+ - name: "set /etc/hostname"
+ shell: |
+ echo "{{ hostname }}" > /etc/hostname
+
+ - name: "unset root password"
+ shell: |
+ sed -i '/^root:[^:]*:/s//root::/' /etc/passwd
+
+ - name: "configure keyboard layout"
+ copy:
+ content: |
+ XKBMODEL="pc105"
+ XKBLAYOUT="fi"
+ XKBVARIANT=""
+ XKBOPTIONS=""
+ BACKSPACE="guess"
+ dest: /etc/default/keyboard
+
+ - name: "configure console"
+ 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:
+ hostname: v-i