summaryrefslogtreecommitdiff
path: root/dan/sk-tomnext.yml
diff options
context:
space:
mode:
Diffstat (limited to 'dan/sk-tomnext.yml')
-rw-r--r--dan/sk-tomnext.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/dan/sk-tomnext.yml b/dan/sk-tomnext.yml
new file mode 100644
index 00000000..d5d0fec6
--- /dev/null
+++ b/dan/sk-tomnext.yml
@@ -0,0 +1,35 @@
+---
+- name: Basic Setup
+ hosts: sk-tomnext
+ roles:
+ - role: base
+ - role: sshd
+ - role: zsh
+ - role: apt-repo/base
+ - role: admin-user
+ - role: cryptdisk
+ - role: zfs/base
+ - role: apt-repo/spreadspace
+ - role: zfs/sanoid
+ - role: vm/host
+ - role: installer/debian/base
+ tasks:
+ - name: install post-boot script
+ copy:
+ dest: /usr/local/bin/post-boot
+ mode: 0755
+ content: |
+ #!/bin/bash
+ set -e
+
+ {% for name, volume in cryptdisk_volumes.items() %}
+ cryptsetup luksOpen '{{ volume.device }}' '{{ name }}'
+ {% endfor %}
+ systemctl restart zfs-import-cache.service
+ systemctl restart zfs-mount.service
+ systemctl restart zfs-share.service
+ systemctl restart zfs-zed.service
+ mount -a
+
+ sleep 2
+ systemctl restart libvirtd.service