diff options
Diffstat (limited to 'skillz/sk-2024.yml')
-rw-r--r-- | skillz/sk-2024.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/skillz/sk-2024.yml b/skillz/sk-2024.yml new file mode 100644 index 00000000..a16cff2a --- /dev/null +++ b/skillz/sk-2024.yml @@ -0,0 +1,43 @@ +--- +- name: Basic Setup + hosts: sk-2024 + roles: + - role: apt-repo/base + - role: core/base + - role: core/sshd/base + - role: core/zsh + - role: core/ntp + - role: core/cpu-microcode + +- name: Payload Setup + hosts: sk-2024 + roles: + - role: storage/luks/base + - role: storage/zfs/base + - role: storage/zfs/sanoid + - role: vm/host/base + - role: vm/host/network + - 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 luks_devices.items() %} + echo -e "opening crypto volume: \033[1;37m{{ name }}\033[0m" + 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 + rm -f /run/libvirt/qemu/autostarted + systemctl restart libvirtd.service |